-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
In the following code, sey_file_real doesn't seem to be used:
if type(sey_file) is dict:
sey_properties = sey_file
else:
# Search for file with given name, either as an absolute path or in the dedicated folder
# Absolute path has precedence.
candidate_files = [
os.path.expanduser(sey_file),
os.path.abspath(os.path.dirname(__file__)) + '/sey_files/' + sey_file,
]
existing_files = filter(os.path.isfile, candidate_files)
if not existing_files:
raise ValueError('SEY file %s is not found' % sey_file)
sey_file_real = existing_files[0]
print('Secondary emission from file %s' % sey_file_real)
sey_properties = sio.loadmat(sey_file)
Metadata
Metadata
Assignees
Labels
No labels