-
Notifications
You must be signed in to change notification settings - Fork 2
Minor fixes to code & edits of docs +++ textual feedback #45
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
Conversation
cf44e8f to
43f370b
Compare
(instead of absolute ones) ... in this way the whole `results` folder becomes "portable" and self-contained, that is, it can be moved somewhere else or to other devices without breaking links.
+ provided & linked references
43f370b to
c70c523
Compare
…ting relative paths into the report. tests: adapted tests to this PR changes
|
Excellent super thorough PR @mherrmann3, sorry I didn't addressed earlier. I included all of your changes, and updated some of them to the recent release. I answer some questions/comments and create a new issues from them:
I implemented automatic versioning, so this should be fixed
I kept the registry logic to work with absolute paths, but modified the report generation to inject only relative paths to the report.
I will implement this changes in the following version bump. Thank you for the ideas!
This should be fixed with the pycsep refactoring we will push in v0.8.0
I think the default should be plotting forecasts in the report. Need to think though how it will be managed when a lot of forecasts were created. In any case, these should be available in full within the dataapp
I removed the hdf5 usage alltogether, because eventually all of the data should be contained in an experiment hdf5
I need to check this
I actually don't know. I left it as example for setting up an experiment, since it is always good to have access to the python API. However, I guess that deserves its own tutorial.
Good questions, but haven't reached a decision yet. With too many timewindows, the report could become unmanageable. Although the report is a good output product anyways, regardless if a dataapp is also created.
It does. I raise a warning now if different environment managers are used... Still needs to digest it, but perhaps it doesn;'t make sense to support venv (not the most reproducible anyways).
Right, will work on this in the next report release.
Case H was revamped, as well as the ETAS and Pymock repositories (now the run function should be only "pymock", the "args_file" will be part of the experiment-model interface.
Needs to be addressed also. Thank you! Closes #41 |
I went through the docs and executed the tutorials; I really enjoyed it. The only critical fix to make models run on my system is commit 'Run models whose absolute path contains a whitespace'. The rest are purely suggestions. @pabloitu Feel free to take what you need 😏
Further comments that require more elaboration follow below 🙂
I installed floatCSEP both via the latest version from github and the stable release from conde-forge; both install fine.
btw:
floatcsep/__init__.pyis at__version__ = "0.1.4"installation instructions:
conda env create -n csep_envexpects anenvironment.yml. So this can only be executed inside the floatCSEP folder; what you meant (in both cases) isconda create -n csep_env(withoutenv). To keep using the one withenvat least for section Latest Version > 1. Usingconda, you only have to reorder your commands, that is,create envaftercd floatcsep; this has a bonus: all dependencies are installed by conda, not pip. I did that in my PR and provided further suggestions. I guess this solves the issue of Toño.pycsepmanually, since it's already specified as dependency); I'd only mention theconda-forgeinstall option and link to the docs for alternative ways.markdown reports:
resultsfolder becomes "portable" and self-contained, that is, can be moved somewhere else or to other devices without breaking links..htmlfile, which can be viewed with a browser; either write out directly or convert from markdown using a separate package likemarkdownorpygments. However, those won't be consumed by GitHub.width=parameter for the 'Input catalog' figures (I like 800). (I didn't touch the code because I didn't know how to do it for this figure table.)##-heading, otherwise they hierarchically appear under "Authoritative Data".plots/figures:
Case D:
2020-01-01_2021-01-01/figures(together with the test results). Also, it might we worthwhile to include them in the report (e.g., a section between input data and results:## Forecast(s)).Case E:
use_db: Falseis indeed muuuch slower (~10x).use_db: Trueas the default in init ofTimeIndependentModel?HDF5Serializerwill eventually be replaced bydbcsep, correct?{timewindow}/forecastsbut (only) in2010-01-01_2022-01-01/figures(i.e., only the last date and together with the test results). Again, it might we worthwhile to include them in the report.'viridis'?case_e.pyfile in the folder; does it have a purpose?Case F:
2016-11-20_2016-11-21/figures). This made sense for time-independent models, but not so much for a T-D forecast. Also, it might we worthwhile to mention those outputs again in the doc of case F (and perhaps include them in the report).Case G:
build: venvis incompatible with running floatCSEP in a conda env; this warning is printed and it doesn't findpymock. In the following, I usebuild: conda(using mamba, which it nicely detects) and assume thatbuild: venvwon't work inside an active conda env; not sure if it works on your system.build: venvto use conda by default (since most users will work in a conda env per install instructions); if you do, don't forget to adapt the 'Important' box;conda remove -n pymock_<hash> --all);build: venvwon't work when already working in a conda environment (if it is truly so).args_filepath into quotation marks (see commit)build: venv, additionally also theactivate_scriptpath must be set in quotation marks (see commit)## Custom plots).2012-06-13_2012-06-20/figures) + it might we worthwhile to mention those outputs again in the doc of case G (and perhaps include them in the report).Case H:
misc:
floatcsep,floatCSEP, and floatCSEP in the docs; I'd homogenize it for "brand recognition" 😄