Skip to content

Conversation

@psomhorst
Copy link
Contributor

@psomhorst psomhorst commented Dec 13, 2024

#192 #193 and #217 explain two limitation of loading Draeger data. This documents these.

"""Load EIT data from path(s).
Current limitations:
- Dräger data is assumed to have a sample frequency of 20 Hz. The sample frequency should be provided while loading
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a bit "unsafe".

- Dräger data is assumed to have a sample frequency of 20 Hz. The sample frequency should be provided while loading
if it differs from 20 Hz.

Maybe we should not give a default frequency at all?

- Dräger data is assumed to have a limited set of (Medibus) data. Newer additions that add data like pleural
pressure are not yet supported.

Is there a way to throw an error message or warning if unsupported data is attached? Or a clear error message if unsupported data is tempted to be accessed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've addressed both issues and updated the tests accordingly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the top issue can be removed here.
the assumption no longer holds true, right? It also does not feel like a "limitation" any more.

@psomhorst psomhorst force-pushed the 249_document_limitations_draeger branch 2 times, most recently from 0b48ab4 to 9d12be1 Compare December 16, 2024 09:38
@psomhorst psomhorst requested a review from DaniBodor December 16, 2024 09:38
Comment on lines 39 to +42
f"File size {file_size} of file {path!s} not divisible by {_FRAME_SIZE_BYTES}.\n"
f"Make sure this is a valid and uncorrupted Dräger data file."
"Currently this package does not support loading files containing "
"esophageal pressure or other non-standard data. "
"Make sure this is a valid and uncorrupted Dräger data file."
Copy link
Member

@DaniBodor DaniBodor Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this clearer? Also is it worthwhile explicitly stating to re-save files excluding those data and trying again?

Suggested change
f"File size {file_size} of file {path!s} not divisible by {_FRAME_SIZE_BYTES}.\n"
f"Make sure this is a valid and uncorrupted Dräger data file."
"Currently this package does not support loading files containing "
"esophageal pressure or other non-standard data. "
"Make sure this is a valid and uncorrupted Dräger data file."
f"<{path!s}> cannot be loaded due to an incompatible file size.\n"
"Make sure this is a valid and uncorrupted Dräger data file.\n"
"Note that this package does not currently support loading"
"files containing esophageal pressure or other non-standard data."

@DaniBodor
Copy link
Member

DaniBodor commented Dec 16, 2024

are you pointing this PR at main rather than develop on purpose? Seems unlikely given that you've rebased or merged the branch on develop.

@psomhorst psomhorst changed the base branch from main to develop December 16, 2024 10:55
@psomhorst psomhorst force-pushed the 249_document_limitations_draeger branch from 9d12be1 to fd30980 Compare December 16, 2024 10:56
@psomhorst psomhorst merged commit 437b35e into develop Dec 16, 2024
3 checks passed
@psomhorst psomhorst deleted the 249_document_limitations_draeger branch December 16, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants