diff --git a/beamtime/xanes/calib.py b/beamtime/xanes/calib.py index 6817b69..2ef6c4d 100644 --- a/beamtime/xanes/calib.py +++ b/beamtime/xanes/calib.py @@ -5,9 +5,20 @@ import os def rbkerbest(): print("ROSENBORG!<3") +#def split_xanes_scan(filename, destination=None): -def split_xanes_scan(filename, destination=None): + # with open(filename, 'r') as f: + +##Better to make a new function that loops through the files, and performing the split_xanes_scan on + + +def split_xanes_scan(root, destination=None, replace=False): + #root is the path to the beamtime-folder + #destination should be the path to the processed data + + #insert a for-loop to go through all the folders.dat-files in the folder root\xanes\raw + with open(filename, 'r') as f: lines = f.readlines() diff --git a/beamtime/xanes/io.py b/beamtime/xanes/io.py index d08b5c1..a818d86 100644 --- a/beamtime/xanes/io.py +++ b/beamtime/xanes/io.py @@ -1 +1,2 @@ -#hello \ No newline at end of file +#hello +#yeah \ No newline at end of file