You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def _src_data_path(self):
"""
Returns the raw path to the data file. This is useless if you aren't on
site, but used by islatu to guess where you've stored the data file
locally.
"""
# This is far from ideal; there currently seems to be no standard way
# to refer to point at information stored outside of the nexus file.
# If you're a human, it's easy enough to find, but with code this is
# a pretty rubbish task. Here I just grab the first .h5 file I find
# and run with it.
found_h5_files = []
print()
def recurse_over_nxgroups(nx_object, found_h5_files):
"""
Recursively looks for nxgroups in nx_object that, when cast to a
string, end in .h5.
"""
#print(self)
for key in nx_object:
new_obj = nx_object[key]
if str(new_obj).endswith(".h5"):
found_h5_files.append(str(new_obj))
if isinstance(new_obj, nx.NXgroup):
recurse_over_nxgroups(new_obj, found_h5_files)
return found_h5_files[0]
should not be looking inside the .nxs files, but rather look for files IN THE SAME directory by mask '_src_data_path/Scan??????.h5'
The text was updated successfully, but these errors were encountered:
This function
should not be looking inside the .nxs files, but rather look for files IN THE SAME directory by mask '_src_data_path/Scan??????.h5'
The text was updated successfully, but these errors were encountered: