Skip to content
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

Small improvements tutorials #243

Merged
merged 5 commits into from
Nov 12, 2021
Merged

Conversation

thuiop
Copy link
Collaborator

@thuiop thuiop commented Nov 12, 2021

Closes #239

I took into account some of the suggestions of the issue. I have not tested it on jupyterlab however.

@thuiop thuiop added the fix Small changes label Nov 12, 2021
@thuiop thuiop added this to the v1.0.0 milestone Nov 12, 2021
@thuiop thuiop self-assigned this Nov 12, 2021
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@codecov
Copy link

codecov bot commented Nov 12, 2021

Codecov Report

Merging #243 (a482cf5) into main (e87afce) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #243   +/-   ##
=======================================
  Coverage   85.85%   85.85%           
=======================================
  Files          13       13           
  Lines        1570     1570           
=======================================
  Hits         1348     1348           
  Misses        222      222           
Flag Coverage Δ
unittests 85.85% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
btk/measure.py 89.88% <100.00%> (ø)
btk/plot_utils.py 80.05% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e87afce...a482cf5. Read the comment docs.

ismael-mendoza
ismael-mendoza previously approved these changes Nov 12, 2021
Copy link
Collaborator

@ismael-mendoza ismael-mendoza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks @thuiop I think we can merge

@ismael-mendoza
Copy link
Collaborator

ismael-mendoza commented Nov 12, 2021

Actually before that I wanted to remove some metions of 'coadd' which was mentioned during the sprint week to be misleading

@ismael-mendoza ismael-mendoza merged commit ee60c2b into main Nov 12, 2021
@ismael-mendoza ismael-mendoza deleted the small-improvements-tutorials branch November 12, 2021 21:57
ismael-mendoza added a commit that referenced this pull request Feb 25, 2022
* Simplify CLI with hydra instantiate (#230)

* update poetry

* more error checking in draw_blends for MR

* bug in this line when using basic measure function and MR

* catch error related to meas_band_num in metrics

* use hydra instantiate and call rather than available_*

* update documentation

* test MR on main, remove error checking now done by hydra

* Revert "update poetry"

This reverts commit aad74ea.

* Custom measurement functions (#231)

* link the CLI tutorial

* clarify that custom survey, measurement functions from CLI are not supported.

* add need blank line

* clarify how to add measure function if you are advanced user

* fix url (#232)

* fixing test

* make test always predictable

* pytest information in pyproject toml (#233)

* Update CONTRIBUTING.md

* More reproducibility (#237)

* only able to provide seed not rng

* only allow integer seeds, propagate to multiprocessing correctly

* propagate changes to tests

* correct seed defaults

* fix tests bc seeds were not propagated correctly before

* larger max int

* Update btk/draw_blends.py

Co-authored-by: Alexandre Boucaud <[email protected]>

* Update btk/sampling_functions.py

Co-authored-by: Alexandre Boucaud <[email protected]>

* define default seed once

* Update btk/sampling_functions.py

Co-authored-by: Alexandre Boucaud <[email protected]>

* dont need another rng embedded in render_blend

* simplify line

* seeds are now used in config

* put defualt seed in init

* show how to use the seed

* add seed in tutorial documentation too

* ignore warning until actually throws an error

* fix tests with new seed

* why did the precision decrease again?

* no output in first cell

Co-authored-by: Alexandre Boucaud <[email protected]>

* Small fixes to the measure file (#242)

* Small fixes to the measure file

* Fixed pixel and world coordinates

* Fixed notebooks

* Small improvements tutorials (#243)

* Renamed notebooks and added readme

* Save in temporary directory in intro notebook

* update name of ntoebooks in test.yml

* remove mentions of coadd

* warning about jupyterlab

Co-authored-by: Ismael Mendoza <[email protected]>

* Invisible shifts and indices (#244)

* add notes to documentation for users about shifts/indexes

* remove shifts/ indices from notebooks to avoid confusing users

* Update CONTRIBUTING.md (#245)

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

* trailing white space

* Ensure PSF is consistently propagated if customized (#246)

* should be a public method

* remove mention of more examples that are non existant

* fix urls (#247)

* Fixed noise seed identical over a batch (#249)

* Fixed noise seed identical over a batch

* Rework seed management

* Documentation for seeds

* Changed behaviour to something more logical

* Moved seed sequence initialization and renamed variables

* remove galsim hub and tensorflow temporarily (#251)

* remove galsim hub and tensorflow

* forgot mention in --extras

* Update notebooks/README.md

Co-authored-by: thuiop <[email protected]>

Co-authored-by: thuiop <[email protected]>

* No capping (#252)

* no capping, suppress warnings

* update poetry

* fix tests after updating

* Separate noises (#254)

* Separate the two noises

* Updated tests

* Possibility to choose which noise is drawn

* Update doc and notebook

* Changed lists to tuples

* Fix test

* Fix all tests

* Updated notebooks

* Revert change

* Notebooks

* Bump ipython from 7.31.0 to 7.31.1 (#257)

Bumps [ipython](https://github.com/ipython/ipython) from 7.31.0 to 7.31.1.
- [Release notes](https://github.com/ipython/ipython/releases)
- [Commits](ipython/ipython@7.31.0...7.31.1)

---
updated-dependencies:
- dependency-name: ipython
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fetch flake8 from GitHub instead of GitLab (#260)

Co-authored-by: Alexandre Boucaud <[email protected]>

* update poetry adn pyproject w/ tqdm

* fixing problem with add_noise (#264)

* Run notebooks once a week in a separate workflow (#263)

* Add progress bar

* add description

* new cron job for notebooks

* update other workflows

* remove push

* forgot to remove notebooks in test.yml

* use nbval-lax

* clarify comment in new job

* not sure why tqdm change was here

* undo sanitize change

* ignore nbval warning

* fix warning

Co-authored-by: thuiop <[email protected]>

* Add progress bar (#258)

* Add progress bar

* add description

* update poetry

* add process to progress bar description

* get current process function

* sanitize progress bar

* run notebooks with progress bar, removed autoreload syntax

Co-authored-by: Ismael Mendoza <[email protected]>

* Parametric cosmos simulations (#256)

* parametric sims with cosmos cat

* updated docstring

* tutorial with parametric example

* adding exclusion_level cuts

* pre-commit changes

* resolve pre-commit changes

* using catalog directly from galsim

* Update 01a-cosmos_tutorial.ipynb

fixing kernel metadata

* fixing kernel metadata

* updating docstring

* default exclusion_level as "marginal"

* _selection.fits catalog

* correcting path

* added tests with parametric sims

* updated config

* removed assert on exclusion_level

* updated add_noise

Co-authored-by: thuiop <[email protected]>
Co-authored-by: Alexandre Boucaud <[email protected]>
Co-authored-by: Ismael Mendoza <[email protected]>

* keep notebook output but remove metadata with nbstripout (#266)

* keep output but remove metadata

* add nbstripout to pre-commit

* add nbstripout to dependencies

* keep output nbstripout

* error corrected

* autoupdate

* update poetry

* black

* black should be latest version

* add notebook action badge (#267)

Co-authored-by: Alexandre Boucaud <[email protected]>
Co-authored-by: thuiop <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Biswajit Biswas <[email protected]>
ismael-mendoza added a commit that referenced this pull request Feb 25, 2022
* Renamed notebooks and added readme

* Save in temporary directory in intro notebook

* update name of ntoebooks in test.yml

* remove mentions of coadd

* warning about jupyterlab

Co-authored-by: Ismael Mendoza <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Small changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Small bugs in tutorial
2 participants