Skip to content

Commit

Permalink
Merge branch 'dac-table-export'
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsielicki committed Oct 15, 2024
2 parents 76117bf + 789c5bc commit 5ccc190
Show file tree
Hide file tree
Showing 4 changed files with 463 additions and 53 deletions.
14 changes: 9 additions & 5 deletions web-client/slycat/web/client/dac_run_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,11 @@ def read_metadata_table (metadata, arguments, log):
meta_column_names = ['Part', 'Lot', 'Batch', 'Serial Number', 'Source']
for tdms_type in metadata[0]["tdms_types"]:
meta_column_names += ['Module ID [' + tdms_type + ']']
for tdms_type in metadata[0]["tdms_types"]:
meta_column_names += ['Module SN [' + tdms_type + ']']
for tdms_type in metadata[0]["tdms_types"]:
meta_column_names += ['Module ID/SN [' + tdms_type + ']']

# for tdms_type in metadata[0]["tdms_types"]:
# meta_column_names += ['Module ID/SN [' + tdms_type + ']']

meta_column_names += const_cols
for tdms_type in metadata[0]["tdms_types"]:
meta_column_names += [header + " [" + tdms_type + "]" for header in var_cols]
Expand All @@ -374,8 +375,11 @@ def read_metadata_table (metadata, arguments, log):
metadata[row]["sn"], metadata[row]["source"]]

# module IDs/SNs
meta_row += metadata[row]["module_ID"] + metadata[row]["module_SN"]
# metadata[row]["module_ID_SN"]
meta_mod_interleaved = []
for i in range(len(metadata[row]["module_ID"])):
meta_mod_interleaved.append(metadata[row]["module_ID"][i])
meta_mod_interleaved.append(metadata[row]["module_SN"][i])
meta_row += meta_mod_interleaved

# data from tdms files
root_props = metadata[row]["root_properties"]
Expand Down
4 changes: 4 additions & 0 deletions web-server/js/slycat-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export function dialog(params)
component.select = ko.observable(params.select || false);
component.multiple = ko.observable(params.multiple || false);

// add check box option
component.checkbox = ko.observable(params.checkbox || false);
component.checkbox_msg = ko.observable(params.checkbox_msg || false);

// set up options list with an index id
var select_options = []
if (typeof params.select_options !== 'undefined') {
Expand Down
Loading

0 comments on commit 5ccc190

Please sign in to comment.