comparison larch_athena.py @ 5:27015eaf9a78 draft

planemo upload for repository https://github.com/MaterialsGalaxy/larch-tools/tree/main/larch_athena commit 47b59eb1f13fe9f4893acbf9e3e77341d303de73
author muon-spectroscopy-computational-project
date Mon, 20 May 2024 15:34:58 +0000
parents a0d3b0fe0fa3
children 30cdfd70f28d
comparison
equal deleted inserted replaced
4:a0d3b0fe0fa3 5:27015eaf9a78
160 ) 160 )
161 filenames.sort() 161 filenames.sort()
162 162
163 for filename in filenames: 163 for filename in filenames:
164 if len(all_paths) > 1: 164 if len(all_paths) > 1:
165 key = f"{dirpath}_{filename}" 165 key = f"{dirpath.replace('/', '_')}_{filename}"
166 else: 166 else:
167 key = filename 167 key = filename
168 filepath = os.path.join(dirpath, filename) 168 filepath = os.path.join(dirpath, filename)
169 xas_data = self.load_single_file(filepath) 169 xas_data = self.load_single_file(filepath)
170 keyed_data[key] = xas_data["out"] 170 keyed_data[key] = xas_data["out"]