Skip to content

File path in sey from file #97

@lmether

Description

@lmether

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions