Skip to content

Commit

Permalink
Replace fixed value with constant
Browse files Browse the repository at this point in the history
  • Loading branch information
psomhorst committed Dec 16, 2024
1 parent db8e76e commit 007df84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eitprocessing/datahandling/loading/draeger.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from numpy.typing import NDArray

load_draeger_data = partial(load_eit_data, vendor=Vendor.DRAEGER)
NAN_VALUE_INDICATOR = -1e30


def load_from_single_path(
Expand Down Expand Up @@ -185,7 +186,7 @@ def _convert_medibus_data(
sparsedata_collection = DataCollection(SparseData)

for field_info, data in zip(medibus_fields, medibus_data, strict=True):
data[data < -1e30] = np.nan
data[data < NAN_VALUE_INDICATOR] = np.nan
if field_info.continuous:
continuous_data = ContinuousData(
label=field_info.signal_name,
Expand Down

0 comments on commit 007df84

Please sign in to comment.