Skip to content

refactor: rename parameters for consistency in MultiSourceModelCore and SubPopulationModelCore#837

Merged
Qazalbash merged 3 commits into
devfrom
rename-parameters
May 31, 2026
Merged

refactor: rename parameters for consistency in MultiSourceModelCore and SubPopulationModelCore#837
Qazalbash merged 3 commits into
devfrom
rename-parameters

Conversation

@Qazalbash

Copy link
Copy Markdown
Member

No description provided.

@Qazalbash Qazalbash self-assigned this May 30, 2026
@Qazalbash Qazalbash added the internal An internal refactor or improvement label May 30, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request standardizes and renames model parameter names across several files, adopting prefixes like m1_ and m2_ and updating suffixes (e.g., renaming mmin/mmax to low/high and mbreak to break). A critical issue was identified in src/gwkokab/analysis/multisource/common.py where "m1_delta_" is duplicated in the bpl parameter list, while "m2_delta_" is missing.

Comment thread src/gwkokab/analysis/multisource/common.py Outdated
Qazalbash and others added 2 commits May 30, 2026 22:20
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@Qazalbash Qazalbash merged commit aca63d7 into dev May 31, 2026
5 checks passed
@Qazalbash Qazalbash deleted the rename-parameters branch May 31, 2026 00:43
Qazalbash added a commit that referenced this pull request Jun 2, 2026
… file tools, and API consistency improvements (#840)

* feat: implement HDF5 support for saving inference data and configurations (#836)

* feat: implement HDF5 support for saving inference data and configurations

* fix: convert HDF5 dataset attributes to a dictionary

* Add report generation functionality with Papermill and Jupyter Notebook template

- Introduced `generate_report.py` to handle report generation from input data files.
- Integrated Papermill for executing Jupyter Notebook templates and generating HTML reports.
- Added a new Jupyter Notebook template `template_report.ipynb` for report formatting.
- Updated `pyproject.toml` to include new dependencies: `nbconvert`, `papermill`, and `plotly`.
- Registered new command line entry point for report generation in `pyproject.toml`.
- Included the notebook template in package data for distribution.

* Update src/gwkokab/analysis/report/generate_report.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* style: format output notebook path assignment

* feat: add corner library dependency for enhanced plotting capabilities

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* fix: ensure compatibility with JAX Array in HDF5 write function

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* feat: using file descriptor to reduce IO overhead

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* refactor: rename parameters for consistency in `MultiSourceModelCore` and `SubPopulationModelCore` (#837)

* refactor: rename parameters for consistency in `MultiSourceModelCore` and `SubPopulationModelCore`

* Update src/gwkokab/analysis/multisource/common.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* fix: reorder parameters in `MultiSourceModelCore`

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* fix: correct quotation marks in HTML script tag for virtual-webgl.js

* feat: utils to repack and replace `.h5` and `.hdf5` files (#838)

* feat: utils to repack and replace `.h5` and `.hdf5` files

* fix: remove bugs from option parsing and update epilog

* feat: utilities to calculate marginal probabilities of mixture models (#833)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update src/gwkokab/analysis/core/utils.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update src/gwkokab/analysis/utils/marginals.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update src/gwkokab/analysis/report/generate_report.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* fix: reorder imports

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant