working on split_xanes_scan

This commit is contained in:
halvorhv 2021-10-14 14:18:39 +02:00
parent 5241776df7
commit 3f3486049b
2 changed files with 14 additions and 2 deletions

View file

@ -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()