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

TSMP2-frontend-proposal: Handle relative path for model environment #44

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

jjokella
Copy link
Contributor

This simplifies using build_tsmp2.sh in scripts, when specifying a non-default model environment.

In particular, the name of the TSMP2-directory is not a prerequisite for setting the model environment input after this PR.

This simplifies using `build_tsmp2.sh` in scripts, when specifying a
non-default model environment.

In particular, the name of the TSMP2-directory is not a prerequisite
for setting the model environment input after this PR.
@jjokella jjokella requested a review from s-poll November 29, 2024 06:27
Copy link
Member

@s-poll s-poll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not like to merge this PR as it is also possible to use relative path without this modification just by putting a relative path to the call and this modification includes a restriction, which is not necessary.
In my view, an improvement would be to add a realpath so that the absolute path of the tsmp2_env is given in the log.

turns relative path inputs into absolute paths
@jjokella
Copy link
Contributor Author

jjokella commented Dec 3, 2024

I completely agree and changed the lines to that effect. This does exactly what I wanted now!

@jjokella jjokella changed the title TSMP2-frontend-proposal: Model environment input path relative to TSMP2-directory TSMP2-frontend-proposal: Handle relative path for model environment Dec 3, 2024
@jjokella jjokella requested a review from s-poll December 3, 2024 11:03
@jjokella jjokella merged commit 79869ff into master Dec 3, 2024
@jjokella jjokella deleted the dev-frontend branch December 3, 2024 12:46
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

Successfully merging this pull request may close these issues.

2 participants