-
Notifications
You must be signed in to change notification settings - Fork 129
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
Install system version-aware and PolyChord update #237
Conversation
* Updated for PolyChord 1.20.0 * added missing nfail * Updated version number * Fixed flake8
Codecov Report
@@ Coverage Diff @@
## master #237 +/- ##
==========================================
+ Coverage 87.88% 87.97% +0.09%
==========================================
Files 92 92
Lines 8335 8386 +51
==========================================
+ Hits 7325 7378 +53
+ Misses 1010 1008 -2
Continue to review full report at Codecov.
|
@cmbant What's the purpose of the following line? Line 234 in 8152a09
It is run under a if allow_external and not component_path , and if it does not raise an exception, return_class will be run below, which calls load_module , which in turns does the exact same import_module call, without any error handling in between, apparently. So why would't the current code,
be equivalent to the simpler following one?
(probably I am wrong, but would like to understand why) |
I don't recall exactly, but probably to give clearer error message and shorter stack trace. Note |
I just checked that the code is indeed equivalent if it would raise an exception at import time, except a possible reload, which is not relevant here. I have substituted below inside the
I am going to simplify this one in principle, and do some testing |
Also, I think there was no error |
Upgrading old versions I think can fail because this raises an error (old installs don't have .dat files):
Trace `(base) [aml1005@login-e-13 cobaya]$ cobaya-install --upgrade planck_2018_lowl.EE ================================================================================
|
Making the
install
function version-aware.version.dat
file containing version tag.install()
detects obsolete versions and lists obsolete packages at the end (if no version detected: obsolete)install()
gets(--)upgrade
option. Off by default: don't overwrite possible user-changes.Closes #197