Skip to content

Commit d4ad373

Browse files
committed
set tdms fallback method default to fail-on-error
1 parent 687a3e9 commit d4ad373

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

python/lib/sift_client/sift_types/data_import.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ class TdmsImportConfig(ImportConfigBase):
589589

590590
start_time_override: datetime | None = None
591591
data: list[TdmsDataColumn] = []
592-
fallback_method: TdmsFallbackMethod | None = None
592+
fallback_method: TdmsFallbackMethod = TdmsFallbackMethod.FAIL_ON_ERROR
593593
time_format: TimeFormat | None = None
594594
relative_start_time: datetime | None = None
595595
import_file_properties: bool = False
@@ -610,8 +610,7 @@ def _to_proto(self) -> TDMSConfigProto:
610610
)
611611
if self.start_time_override is not None:
612612
proto.start_time_override.CopyFrom(to_pb_timestamp(self.start_time_override))
613-
if self.fallback_method is not None:
614-
proto.fallback_method = self.fallback_method.value
613+
proto.fallback_method = self.fallback_method.value
615614
if self.time_format is not None:
616615
proto.time_format = self.time_format.value
617616
if self.relative_start_time is not None:

0 commit comments

Comments
 (0)