Draft of write_data function
This commit is contained in:
parent
576ce0301b
commit
76cf0f2275
1 changed files with 19 additions and 1 deletions
|
|
@ -442,4 +442,22 @@ def determine_active_roi(scan_data):
|
||||||
active_roi = None
|
active_roi = None
|
||||||
|
|
||||||
return active_roi
|
return active_roi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def write_data(data: dict, options={}):
|
||||||
|
|
||||||
|
|
||||||
|
default_options = {
|
||||||
|
'save_filenames': None,
|
||||||
|
'save_dir': '.',
|
||||||
|
}
|
||||||
|
|
||||||
|
options = aux.update_options(options=options, default_options=default_options, required_options=default_options.keys())
|
||||||
|
|
||||||
|
|
||||||
|
if not options['save_filenames']:
|
||||||
|
options['save_filenames'] = [os.path.basename(col).split('.')[0]+'_exported.dat' for col in data['xanes_data'].columns if 'ZapEnergy' not in col]
|
||||||
|
|
||||||
|
|
||||||
|
print(options['save_filenames'])
|
||||||
Loading…
Add table
Add a link
Reference in a new issue