-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix docs building and deployment #93
Conversation
Ups!, It was indeed helpful to check the docs: https://juanep97.github.io/iop4/recipes/05_quad_matching_dipol_polarimetry_images.html There are some steps of the examples that failed (see page above): DoesNotExist: RawFit matching query does not exist. |
Yep, I just noticed. It is missing a |
dace4a1
to
1aa6b1c
Compare
might need to create the directory first
|
I changed the default location to |
60bed9a
to
26caf81
Compare
I changed my mind... The online log viewer assumes that log files are at |
Lines 189 to 201 in a501c3b
Looks like that part uses a lot of memory (over 4GB) when it creates the master dark for those 14 files... it should not use that much. It was making docs fail. After increasing the runner limits, docs passes but it still slows down quite a bit. Probably that np.nanmedian call. |
Maybe using |
I will reduce the limits to the original and re-run it with that change to test it. If it does not work, we can open a separate issue / PR to study it. |
Nope, it gets stuck and files there:
Full frame darks for DIPOL are 23M, 14 of them should be 322M. Since they get converted to from int16 to float64 for the operations, that is 1.2GB. I assume that the median algorithm uses some factor of this, hence the memory usage. Possibly could be alleviated with something similar to #30. Also, in the close future we will increase the default binning of DIPOL to reduce file size. |
OK, thanks for the checks. Then, increase the runner's memory and we will deal with that problem in another PR as you suggested. This one is good to go |
This reverts commit 41de24b.
It was not deploying only the latest tagged release which was the intended behavior in #91.
Notebooks were also not properly run because the data was not available in the DB. Added a step of adding the test data and reducing it before building the docs.
This step can be removed (making doc building faster) if the notebooks are modified to first make sure that local data is added to the DB (e.g. in another notebook); but this works for now.
Also, omit the docs step in ci.yml for tag pushes, in that case it is done already in docs.yml.