-
Notifications
You must be signed in to change notification settings - Fork 39
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
product_version argument overridden by environment #2791
Comments
|
Right, the dev environments (like |
I realised that the environment variable is undocumented. I'm still querying whether the current behaviour is the most appropriate. If I set |
I think @seanpearsonuk raises a good point that the implementation of this environment variable may not be appropriate (even if it is only to be used for dev/CI). The environment variable should probably not override a On this topic, I would also vote for actually documenting all these environment variables somewhere in the docs, even if we don't expect users to use them. There will certainly always be niche use cases for these. |
Maybe I'm using the env var
The journal may contain I'm open to modify the beahviour if that makes the usage simpler. I agree that we should document the dev environment variable usage. |
The way you are using it explains why it was implemented this way. I've only personally used If I wanted to run a journal, or interactively a command, that explicitly specifies There isn't a right or wrong answer here in my understanding, just different use cases and whether you think that function arguments should be respected over environment variables that were set up. I do think it is a bit weird that currently we'd just ignore |
Related question: is there another way to specify a local Fluent release similarly to If, for example, we had a Edit: then raising appropriate warnings if both arguments are specified (or the fluent_root env var and the product_version argument are both specified). Would make everything more intuitive I think. Let me know what your thoughts are, I think this would also address Sean's initial point. |
I think that if we are going to continue to ignore |
In
solver = pf.launch_fluent(product_version=pf.FluentVersion.v241)
theproduct_version
is overridden by thePYFLUENT_FLUENT_ROOT
environment variable, which should only hold in the absence of a specific version choice for the specific launch. In my opinion.Please comment, @mkundu1 @prmukherj @hpohekar @raph-luc
The text was updated successfully, but these errors were encountered: