Skip to content

Commit 5ce8a67

Browse files
tdms preview cleanup visual
1 parent 787eb8e commit 5ce8a67

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

rust/crates/sift_cli/src/cmd/import/tdms/detect_tdms_config.rs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@ fn detect_config(path: &Path, fallback_method: TdmsFallbackMethod) -> Result<Vec
234234
continue;
235235
};
236236

237-
let is_waveform = is_waveform_channel(channel);
238-
let has_timing = is_waveform || time_channel_name.is_some();
237+
let has_timing = is_waveform_channel(channel) || time_channel_name.is_some();
239238
if !has_timing {
240239
match fallback_method {
241240
TdmsFallbackMethod::IgnoreError => continue,
@@ -249,23 +248,10 @@ fn detect_config(path: &Path, fallback_method: TdmsFallbackMethod) -> Result<Vec
249248
}
250249
}
251250

252-
let description = {
253-
let raw = get_string_property(channel, "description");
254-
if is_waveform {
255-
if raw.is_empty() {
256-
"[waveform timing]".to_string()
257-
} else {
258-
format!("[waveform timing] {raw}")
259-
}
260-
} else {
261-
raw
262-
}
263-
};
264-
265251
channels_vec.push(ChannelConfig {
266252
name: format!("{}.{}", group, channel_name),
267253
units: get_string_property(channel, "unit_string"),
268-
description,
254+
description: get_string_property(channel, "description"),
269255
data_type: data_type as i32,
270256
..Default::default()
271257
});

0 commit comments

Comments
 (0)