Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seisflows configure relative paths sets 'null' as a path #148

Open
bch0w opened this issue Jan 6, 2023 · 1 comment
Open

seisflows configure relative paths sets 'null' as a path #148

bch0w opened this issue Jan 6, 2023 · 1 comment
Labels

Comments

@bch0w
Copy link
Member

bch0w commented Jan 6, 2023

When using seisflows configure with the '-a' option to set paths as absolute, paths that are originally set as null (which represents NoneType in YAML format) get set as full paths. For example

path_mask: null

seisflows configure -a

path_mask: /Users/chow/Work/scratch/null

Will need to edit the configure script to ignore values set as None and as 'null'

@bch0w bch0w added the bug label Jan 6, 2023
@bch0w
Copy link
Member Author

bch0w commented Jan 6, 2023

Similarly, the error message that results from this (SeisFlows trying to read model files from an incorrect path) is pretty vague and can probably be made more descriptive.

  File "/home/ykaneko/Samriddhi/seisflows/seisflows/tools/model.py", line 103, in __init__
    self.fmt = self._guess_file_format()
  File "/home/ykaneko/Samriddhi/seisflows/seisflows/tools/model.py", line 658, in _guess_file_format
    assert (len(fmt) == 1), (
AssertionError: cannot guess model format, multiple matching acceptable formats found: []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant