-
Notifications
You must be signed in to change notification settings - Fork 115
defaults, sid and env #81
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
Comments
Sounds good to me, except for the part of removing all other environment variables. We still need some simple mechanisms for e.g. disabling caching for certain tests, and so on. |
Having multiple defaults files is now implemented in 0df1069. I spent some time thinking about this, also discussing with @renemilk and @andreasbuhr. There are various possibilities how to solve this: Easiest would be to allow and force the user to specify for each default that is being set if it should enter sid calcuation. One could still have the Next possibility would be to introduce a second mechanism to specify defaults which do not enter sid calculation. Let's call them io_options for now. We would introduce, Finally, would could let all defaults enter sid calculation, but only those which are needed to obtain a desired state. To be more precise: When a new instance of
Despite the complexity, I believe the last approach should work and, if so, would be the most elegant option. Since I would like to release soon and implementing this might break things, I would propose changing the milestone back to 0.4. @ftalbrecht, is having multiple defaults files and not implementing |
Thank you for your work! To be quite honest I am not fully aware of all consequences of the three approaches you suggest:
|
@ftalbrecht, the first approach would mean that not only you are able to specify If the trivial caching is removed from the |
Thank you for the clarification, this is (of couse) out of the question! |
@ftalbrecht, what is out of the question? |
To allow the specifiation of |
Sure, but |
After thinking about it some more, I have finally implemented the original proposal in commits 52a4873...1813d5d. I am quite happy with the result. Some details:
|
We have to decide on how to handle defaults, sid generation and env in the future, see the discussion in pr #77 for instance. If I remember correctly todays discussion resulted in the following decisions (please corret me if I rememeber wrong):
_sid_ignore
may not be the final name):PYMOR_DEFAULTS
environment variable can be set to a list of filenames (instead of only one file), all of which are used. If a default is defined several times in these files a warning will be printed and the last occurence will be used. This allows to have harware independent defaults which affect the sid in apymor_defaults.py
that can be tracked by revision control for reproducability and a secondpymor_defaults-$HOSTNAME.py
with locations/settings specific to that machine.PYMOR_DEFAULTS
Is this a correct summary, @sdrave, @andreasbuhr, @renemilk?
The text was updated successfully, but these errors were encountered: