Change default behaviour with 10+ plots

This commit is contained in:
rasmusvt 2022-03-30 17:40:06 +02:00
parent 0fbfd20a74
commit 223be18c3e
3 changed files with 24 additions and 15 deletions

View file

@ -252,7 +252,7 @@ def read_brml(data, options={}, index=0):
start = float(chain.findall('ScanInformation/ScaleAxes/ScaleAxisInfo/Start')[0].text)
stop = float(chain.findall('ScanInformation/ScaleAxes/ScaleAxisInfo/Stop')[0].text)
increment = float(chain.findall('ScanInformation/ScaleAxes/ScaleAxisInfo/Increment')[0].text)
@ -262,7 +262,7 @@ def read_brml(data, options={}, index=0):
intensity = []
for r in raw:
if r > 600:
if r > 601:
intensity.append(r)
intensity = np.array(intensity)
@ -478,9 +478,7 @@ def translate_wavelengths(data, wavelength, to_wavelength=None):
def find_wavelength_from_xy(path):
print(path)
wavelength_dict = {'Cu': 1.54059, 'Mo': 0.71073}
with open(path, 'r') as f: