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

~ ($HOME) in path not supported by PyStemmusScope #34

Open
BSchilperoort opened this issue Aug 19, 2022 · 1 comment
Open

~ ($HOME) in path not supported by PyStemmusScope #34

BSchilperoort opened this issue Aug 19, 2022 · 1 comment

Comments

@BSchilperoort
Copy link
Contributor

I tried to use the ~ character in the file paths when setting up the PyStemmusScope configuration, however, this does not seem to be supported. Instead I have to use the (full) absolute path.

Would we want to support this? pathlib's .expanduser() will retrieve the home directory from ~.

>>> pth = pathlib.Path('~/STEMMUS_SCOPE_data/model_parameters/vegetation_property/')
>>> pth.expanduser()
PosixPath('/home/bart/STEMMUS_SCOPE_data/model_parameters/vegetation_property')
@SarahAlidoost
Copy link
Member

yes, we can refactor read_config to use utils.to_absolute_path.

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

No branches or pull requests

2 participants