working on split_xanes_scan
This commit is contained in:
parent
5241776df7
commit
3f3486049b
2 changed files with 14 additions and 2 deletions
|
|
@ -5,9 +5,20 @@ import os
|
||||||
def rbkerbest():
|
def rbkerbest():
|
||||||
print("ROSENBORG!<3")
|
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:
|
with open(filename, 'r') as f:
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
#hello
|
#hello
|
||||||
|
#yeah
|
||||||
Loading…
Add table
Add a link
Reference in a new issue