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

Implement Gaussian shifts #60

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

arthurmloureiro
Copy link
Contributor

Fixes #17

Implement Gaussian parameter shifts in the Smokescreen repository.

  • Add draw_gaussian_param_shifts function in src/smokescreen/param_shifts.py to handle Gaussian shifts.
  • Update ConcealDataVector class in src/smokescreen/datavector.py to support Gaussian shifts.
  • Add tests for Gaussian shifts in tests/test_datavector.py.
  • Update documentation in docs/source/usage.rst to include Gaussian shifts and example usage.
  • Add shift distribution option to main function in src/smokescreen/__main__.py and update CLI to accept flat or gaussian shift distribution.
  • Add shift_distribution keyword to example configuration files in examples/cosmic_shear/blind_cosmic_shear_example.yaml and examples/supernovae/blind_sn_example.yaml.

Fixes #17

Implement Gaussian parameter shifts in the Smokescreen repository.

* Add `draw_gaussian_param_shifts` function in `src/smokescreen/param_shifts.py` to handle Gaussian shifts.
* Update `ConcealDataVector` class in `src/smokescreen/datavector.py` to support Gaussian shifts.
* Add tests for Gaussian shifts in `tests/test_datavector.py`.
* Update documentation in `docs/source/usage.rst` to include Gaussian shifts and example usage.
* Add shift distribution option to main function in `src/smokescreen/__main__.py` and update CLI to accept `flat` or `gaussian` shift distribution.
* Add `shift_distribution` keyword to example configuration files in `examples/cosmic_shear/blind_cosmic_shear_example.yaml` and `examples/supernovae/blind_sn_example.yaml`.
@arthurmloureiro arthurmloureiro marked this pull request as draft October 18, 2024 22:53
@arthurmloureiro arthurmloureiro self-assigned this Oct 18, 2024
@arthurmloureiro arthurmloureiro added enhancement data-vector blinding Issues related to data-vector blinding labels Oct 18, 2024
@arthurmloureiro
Copy link
Contributor Author

Needs further testing

* Modify `test_load_shifts` and `test_calculate_concealing_factor_add` functions in `tests/test_datavector.py` to include Gaussian shifts.
* Update `docs/source/usage.rst` to reflect the addition of Gaussian shifts.
* Add `shift_distribution` keyword to `examples/supernovae/blind_sn_example.yaml` configuration file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-vector blinding Issues related to data-vector blinding enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Gaussian Shifts
1 participant