Skip to content

Apply templates - #353

Merged
rozyczko merged 22 commits into
developfrom
templates
May 12, 2026
Merged

rozyczko merged 22 commits into
developfrom
templates

Conversation

@rozyczko

Copy link
Copy Markdown
Member

Implement templates in ERL

rozyczko and others added 13 commits March 9, 2026 09:36
* Refl1d fix (#302)

* assure refl1d actually runs from the GUI

* don't fail on codecov upload

* Improved limits for certain parameters (#304)

* set `disable` status on relevant sub/super-phase parameters

* Mighell transform (#303)

* fixed chi2 reporting, added MD file with description

* added docs about Mighell

* updated easyscience branch, deleted script

* chi -> chi2
@rozyczko rozyczko added chore Chore changes to the code [scope] maintenance Code/tooling cleanup, no feature or bugfix (major.minor.PATCH) [priority] highest Urgent. Needs attention ASAP labels May 11, 2026
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@codecov

codecov Bot commented May 11, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (b65486c) to head (5e52bd7).
⚠️ Report is 16 commits behind head on develop.

Files with missing lines Patch % Lines
src/easyreflectometry/fitting.py 0.00% 2 Missing ⚠️
src/easyreflectometry/model/model.py 0.00% 2 Missing ⚠️
...rc/easyreflectometry/model/resolution_functions.py 0.00% 2 Missing ⚠️
src/easyreflectometry/project.py 0.00% 2 Missing ⚠️
...etry/sample/elements/materials/material_mixture.py 0.00% 2 Missing ⚠️
src/easyreflectometry/calculators/__init__.py 0.00% 1 Missing ⚠️
src/easyreflectometry/plot.py 0.00% 1 Missing ⚠️
src/easyreflectometry/sample/collections/sample.py 0.00% 1 Missing ⚠️
src/easyreflectometry/summary/__init__.py 0.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (b65486c) and HEAD (5e52bd7). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (b65486c) HEAD (5e52bd7)
unittests 3 1
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #353       +/-   ##
===========================================
- Coverage    88.16%   0.00%   -88.17%     
===========================================
  Files           45      40        -5     
  Lines         2620    2706       +86     
  Branches       315       0      -315     
===========================================
- Hits          2310       0     -2310     
- Misses         238    2706     +2468     
+ Partials        72       0       -72     
Flag Coverage Δ
integration 0.00% <0.00%> (?)
unittests 0.00% <0.00%> (-88.17%) ⬇️

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

Files with missing lines Coverage Δ
src/easyreflectometry/__init__.py 0.00% <ø> (-71.43%) ⬇️
...c/easyreflectometry/calculators/calculator_base.py 0.00% <ø> (-95.13%) ⬇️
src/easyreflectometry/calculators/factory.py 0.00% <ø> (-93.75%) ⬇️
src/easyreflectometry/calculators/wrapper_base.py 0.00% <ø> (-98.62%) ⬇️
src/easyreflectometry/data/__init__.py 0.00% <ø> (-100.00%) ⬇️
src/easyreflectometry/data/data_store.py 0.00% <ø> (-91.92%) ⬇️
src/easyreflectometry/data/measurement.py 0.00% <ø> (-86.25%) ⬇️
src/easyreflectometry/limits.py 0.00% <ø> (ø)
src/easyreflectometry/main.py 0.00% <ø> (ø)
src/easyreflectometry/model/__init__.py 0.00% <ø> (-100.00%) ⬇️
... and 30 more

... and 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread docs/docs/api-reference/model.md Resolved

@henrikjacobsenfys henrikjacobsenfys left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some minor things to consider. I did not look at every single file..

Comment thread src/easyreflectometry/model/model.py Resolved

@AndrewSazonov AndrewSazonov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That is a big change, so I did not review every detail carefully. I found a few minor issues, which I addressed in separate comments. Otherwise, it looks good to me.

Comment thread docs/docs/tutorials/index.md Resolved
Comment thread docs/docs/tutorials/tutorial.ipynb Resolved
Comment thread docs/mkdocs.yml Resolved
Comment thread src/easyreflectometry/model/model.py Resolved
@AndrewSazonov

Copy link
Copy Markdown
Member

Another question: is there a real need to add the chore label, which should already be covered by [scope] maintenance?

Also, this repository has 17 labels that do not follow our organization-wide ADR #33. Some of them, such as fix, bugfix, feature, chore, etc. duplicate our main label set, so I suggest removing them. Others look like project-specific labels, so I suggest prefixing them with [area] and using the color defined in the ADR for consistency.

@AndrewSazonov

Copy link
Copy Markdown
Member

You can also upgrade the lock file to get rid of this warning message:

WARN the lock file is up-to-date but uses an older format (v6), run `pixi lock` 
to upgrade to v7 for improved reproducibility

@rozyczko
rozyczko merged commit d773e7f into develop May 12, 2026
58 of 60 checks passed
@rozyczko
rozyczko deleted the templates branch October 14, 2026 07:38
rozyczko added a commit that referenced this pull request Oct 19, 2026
* Refl1d fix (#302)

* assure refl1d actually runs from the GUI

* don't fail on codecov upload

* Improved limits for certain parameters (#304)

* initial implementation

* set `disable` status on relevant sub/super-phase parameters

* fixed tests

* fixes after CR

* fixed tests

* Mighell transform (#303)

* initial implementation of the mighell algorithm for data with zero variances

* don't fail on codecov upload

* fixed chi2 reporting, added MD file with description

* unit test update

* added docs about Mighell

* updated easyscience branch, deleted script

* chi -> chi2

* use develop for core

* version bump. dependency fix for release.

* modified release version

* updated docs

* include plopp as a doc dependency

* Preparations for the release (#350) (#351)

* backmerge after 1.6.0 release

* Apply templates (#353)

* initial commit up to and including `pixi run check` step

* fixes

* updates to pyproject.toml

* remade __init__.py

* minor fix

* a few more fixes

* Apply templates with docstrings fixes

* Add missing favicon and update SVG assets

* moved docs for mkdocs

* make "pixi run mkdocs build" and "pixi run nonpy-format-check" work
together

* try using absolute paths for the wheel

* minor fixes

* refactor md file headers for docs

* minor CR changes

* linting

* code review fixes

* CR fixes

* proper globbing

* remove __version__

---------

Co-authored-by: Andrew Sazonov <[email protected]>

* prettify the summary (#356)

* refactor printout formatter (#358)

* make PDF links clickable (#359)

* Move to EasyList (#360)

* initial commit

* PR review

* more tests

* Bayesian analysis (#352)

* initial commit with examples

* ruff format

* refactor core modifications to live in reflectometry lib only

* modified the notebook a bit

* refactored MCMC sampling to easyscience module

* added pass-through for cancellation and total number of calculations

* silly typo

* yet another linting

* moved the notebook to the correct location and fixed the formatting

* added more initial arguments to sample. Added unit tests

* prettify charts. Updated notebook

* fixed issue with the notebook

* move file fetch to reflectometry/data

* PR review fixes

* be careful with small chains

* ruff

* try to use explicit dtype for Ubuntu

* another attempt at fixing failing test

* better corner and distribution plots

* updates to the Bayesian API after changes to core

* use bayesian_extend

* minor fixes

* fix failing test

* test against develop, so we can merge the PR

* use mcmc_sample

* fixed tests

* minor notebook fix

* HTML Summary now shows plots with plotly (#363)

* Pointwise update (#362)

* initial commit with examples

* ruff format

* refactor core modifications to live in reflectometry lib only

* modified the notebook a bit

* refactored MCMC sampling to easyscience module

* added pass-through for cancellation and total number of calculations

* silly typo

* yet another linting

* moved the notebook to the correct location and fixed the formatting

* added more initial arguments to sample. Added unit tests

* prettify charts. Updated notebook

* fixed issue with the notebook

* move file fetch to reflectometry/data

* PR review fixes

* be careful with small chains

* ruff

* try to use explicit dtype for Ubuntu

* another attempt at fixing failing test

* better corner and distribution plots

* updated poitwise logic/notebook

* 381 apitest hygiene (#384)

* addressing #381

* minor docstring update

* fixes for summary printout #375 (#385)

* Core fixes (#383)

* moved to Sampler class from Core

* reparent branch

* fixed issue #367 (#382)

* fixed issue #367

* disable automatic parallelization for windows

* Changes after code review

* added test

* arviz fix

* try to fix prettier issues

* updated notebook

* linting

* fixing #370 (#388)

* reparent to develop

* Core fixes pointwise (#387)

* fixed pointwise treatment on file load

* more tests

* reparented easyscience, updated CHANGELOG

* codecov related fixes (#391)

* Codecov fixes 2 (#392)

* try to fix failing test

* another attempt

* Polarized channels (#393)

* initial version

* added magnetic SLD profile

* added magnetic parameters

* code review comments addressed

* code review fixes for Phase 2, added notebook

* PR code review comments

* fixed polarized file load issue

* enable magnetic layers

* new LayerMagnetism component

* ruff

* ruff on notebooks

* bind calculator to model for performance

* attempt at fixing package testing

* package tests only on master

* don't run ruff twice

* code review fixes

* added polarized fitting example/notebook

* fixed default sample generation

* improved wording in the magnetic fitting notebook

* move the most expensive test to integration

* dont show 0.0 for parameter errors where no fitting was done (#397)

* removed vestiges of BA (#394)

* Improved constraints + doc migration (#400)

* initial version

* added magnetic SLD profile

* added magnetic parameters

* ruff

* code review comments addressed

* code review fixes for Phase 2, added notebook

* ruff

* PR code review comments

* fixed polarized file load issue

* enable magnetic layers

* new LayerMagnetism component

* ruff

* ruff on notebooks

* bind calculator to model for performance

* attempt at fixing package testing

* package tests only on master

* don't run ruff twice

* code review fixes

* added polarized fitting example/notebook

* fixed default sample generation

* improved wording in the magnetic fitting notebook

* move the most expensive test to integration

* Improved constraints (#395)

* improved handling of constraints

* ruff

* wording

* additional cell in a notebook to showcase the new way of doing
constraints

* fixed notebook

* initial checkin

* .bounds -> min, max

* updates so the code is self-contained and doesn't depend on changes to
core

* Code review comments addressed

* Updated docs (#398)

* move everything to MKDocs
minor updates/fixes after code review

* ruff fix for notebook

* Fix broken conflict resolutions from develop merge

The merge of develop (2042778) left two files with damaged conflict
resolutions: magnetism.ipynb gained a corrupt hybrid cell (invalid
notebook JSON, duplicate cell id) and project.py gained a duplicated
copy of the spin-asymmetry method block with an orphaned method body.
Both files are restored to the branch-side version, which already
contained everything develop had for them.

Co-Authored-By: Claude Fable 5 <[email protected]>

* code review issues addressed

* removed explicit EasyCore constraints factory reliance

---------

Co-authored-by: Claude Fable 5 <[email protected]>

* Orso improvements (#402)

* initial commit

* code review fixes

* more unit tests for orso functionality

* Enable SLD dependence on material data (#403)

* enable SLD dependence on material data

* extending methods for use in ERA

* code review issues addressed

* ruff

* make molecular weight a descriptor

* Improvements to the state tracking #401 (#405)

* Improvements to the state tracking #401

* PR issues addressed

* minor ruff NOQA

* reparent to develop of core and fixed the functionality

* minor material editor fix (#408)

* fix default elements (#410)

* 378 remove datastore (#409)

* Removed DataStore

* ruff on CHANGELOG

* ruff

* Added exception when file exists and overwrite=false (#411)

* fix the multi-column load #376 (#413)

* fix the multi-column load #376

* preparations for the release

* pixi update

* updated EasyScience dep

* pre-release doc fixes

* correct units for scattering lengths #377 (#419)

* correct units for scattering lengths #377

* improved help and tests

* reparent example files properly (#420)

* minor fixes required for the updated GUI (#422)

* minor fixes required for the updated GUI

* PR review fixes #1

* PR review fixes

* 281 volume fraction (#421)

* Added volume fraction profile calculation and display. #281

* fixed CHANGELOG

* variable resolution fitting (#424)

* variable resolution fitting, initial commit

* PR review fixes

* 426 fix wrong curve (#428)

* fixed unique_name reuse for uncollected models #426

* added missing test

* added fit configuration owner #427 (#429)

* added fit configuration owner #427

* PR review fixes

* 425 multiple contrasts (#432)

* Multiple contrasts implementation improved. #425 issue #2

* PR review fixes

* another round of reviews

* added docs and notebook for multiple contrasts

* added multiple contrast docs and notebook

* fixed docs

* added a convergence integration test. (#436)

* Variable resolution fitting fixes from #425 p.3 (#437)

* Variable resolution fitting fixes from #425 p.3

* code review fixes

* updated README.md (#438)

* updated README.md

* slight modifications of README

* implemented fixes to the magnetism feature. #425, point 3. (#439)

* implemented fixes to the magnetism feature. #425, point 3.

* code review fixes

* update versioning

---------

Co-authored-by: Piotr Rozyczko <[email protected]>
Co-authored-by: Andrew Sazonov <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
rozyczko added a commit that referenced this pull request Nov 13, 2026
* Refl1d fix (#302)

* assure refl1d actually runs from the GUI

* don't fail on codecov upload

* Improved limits for certain parameters (#304)

* initial implementation

* set `disable` status on relevant sub/super-phase parameters

* fixed tests

* fixes after CR

* fixed tests

* Mighell transform (#303)

* initial implementation of the mighell algorithm for data with zero variances

* don't fail on codecov upload

* fixed chi2 reporting, added MD file with description

* unit test update

* added docs about Mighell

* updated easyscience branch, deleted script

* chi -> chi2

* use develop for core

* version bump. dependency fix for release.

* modified release version

* updated docs

* include plopp as a doc dependency

* Preparations for the release (#350) (#351)

* backmerge after 1.6.0 release

* Apply templates (#353)

* initial commit up to and including `pixi run check` step

* fixes

* updates to pyproject.toml

* remade __init__.py

* minor fix

* a few more fixes

* Apply templates with docstrings fixes

* Add missing favicon and update SVG assets

* moved docs for mkdocs

* make "pixi run mkdocs build" and "pixi run nonpy-format-check" work
together

* try using absolute paths for the wheel

* minor fixes

* refactor md file headers for docs

* minor CR changes

* linting

* code review fixes

* CR fixes

* proper globbing

* remove __version__

---------

Co-authored-by: Andrew Sazonov <[email protected]>

* prettify the summary (#356)

* refactor printout formatter (#358)

* make PDF links clickable (#359)

* Move to EasyList (#360)

* initial commit

* PR review

* more tests

* Bayesian analysis (#352)

* initial commit with examples

* ruff format

* refactor core modifications to live in reflectometry lib only

* modified the notebook a bit

* refactored MCMC sampling to easyscience module

* added pass-through for cancellation and total number of calculations

* silly typo

* yet another linting

* moved the notebook to the correct location and fixed the formatting

* added more initial arguments to sample. Added unit tests

* prettify charts. Updated notebook

* fixed issue with the notebook

* move file fetch to reflectometry/data

* PR review fixes

* be careful with small chains

* ruff

* try to use explicit dtype for Ubuntu

* another attempt at fixing failing test

* better corner and distribution plots

* updates to the Bayesian API after changes to core

* use bayesian_extend

* minor fixes

* fix failing test

* test against develop, so we can merge the PR

* use mcmc_sample

* fixed tests

* minor notebook fix

* HTML Summary now shows plots with plotly (#363)

* Pointwise update (#362)

* initial commit with examples

* ruff format

* refactor core modifications to live in reflectometry lib only

* modified the notebook a bit

* refactored MCMC sampling to easyscience module

* added pass-through for cancellation and total number of calculations

* silly typo

* yet another linting

* moved the notebook to the correct location and fixed the formatting

* added more initial arguments to sample. Added unit tests

* prettify charts. Updated notebook

* fixed issue with the notebook

* move file fetch to reflectometry/data

* PR review fixes

* be careful with small chains

* ruff

* try to use explicit dtype for Ubuntu

* another attempt at fixing failing test

* better corner and distribution plots

* updated poitwise logic/notebook

* 381 apitest hygiene (#384)

* addressing #381

* minor docstring update

* fixes for summary printout #375 (#385)

* Core fixes (#383)

* moved to Sampler class from Core

* reparent branch

* fixed issue #367 (#382)

* fixed issue #367

* disable automatic parallelization for windows

* Changes after code review

* added test

* arviz fix

* try to fix prettier issues

* updated notebook

* linting

* fixing #370 (#388)

* reparent to develop

* Core fixes pointwise (#387)

* fixed pointwise treatment on file load

* more tests

* reparented easyscience, updated CHANGELOG

* codecov related fixes (#391)

* Codecov fixes 2 (#392)

* try to fix failing test

* another attempt

* Polarized channels (#393)

* initial version

* added magnetic SLD profile

* added magnetic parameters

* code review comments addressed

* code review fixes for Phase 2, added notebook

* PR code review comments

* fixed polarized file load issue

* enable magnetic layers

* new LayerMagnetism component

* ruff

* ruff on notebooks

* bind calculator to model for performance

* attempt at fixing package testing

* package tests only on master

* don't run ruff twice

* code review fixes

* added polarized fitting example/notebook

* fixed default sample generation

* improved wording in the magnetic fitting notebook

* move the most expensive test to integration

* dont show 0.0 for parameter errors where no fitting was done (#397)

* removed vestiges of BA (#394)

* Improved constraints + doc migration (#400)

* initial version

* added magnetic SLD profile

* added magnetic parameters

* ruff

* code review comments addressed

* code review fixes for Phase 2, added notebook

* ruff

* PR code review comments

* fixed polarized file load issue

* enable magnetic layers

* new LayerMagnetism component

* ruff

* ruff on notebooks

* bind calculator to model for performance

* attempt at fixing package testing

* package tests only on master

* don't run ruff twice

* code review fixes

* added polarized fitting example/notebook

* fixed default sample generation

* improved wording in the magnetic fitting notebook

* move the most expensive test to integration

* Improved constraints (#395)

* improved handling of constraints

* ruff

* wording

* additional cell in a notebook to showcase the new way of doing
constraints

* fixed notebook

* initial checkin

* .bounds -> min, max

* updates so the code is self-contained and doesn't depend on changes to
core

* Code review comments addressed

* Updated docs (#398)

* move everything to MKDocs
minor updates/fixes after code review

* ruff fix for notebook

* Fix broken conflict resolutions from develop merge

The merge of develop (2042778) left two files with damaged conflict
resolutions: magnetism.ipynb gained a corrupt hybrid cell (invalid
notebook JSON, duplicate cell id) and project.py gained a duplicated
copy of the spin-asymmetry method block with an orphaned method body.
Both files are restored to the branch-side version, which already
contained everything develop had for them.

Co-Authored-By: Claude Fable 5 <[email protected]>

* code review issues addressed

* removed explicit EasyCore constraints factory reliance

---------

Co-authored-by: Claude Fable 5 <[email protected]>

* Orso improvements (#402)

* initial commit

* code review fixes

* more unit tests for orso functionality

* Enable SLD dependence on material data (#403)

* enable SLD dependence on material data

* extending methods for use in ERA

* code review issues addressed

* ruff

* make molecular weight a descriptor

* Improvements to the state tracking #401 (#405)

* Improvements to the state tracking #401

* PR issues addressed

* minor ruff NOQA

* reparent to develop of core and fixed the functionality

* minor material editor fix (#408)

* fix default elements (#410)

* 378 remove datastore (#409)

* Removed DataStore

* ruff on CHANGELOG

* ruff

* Added exception when file exists and overwrite=false (#411)

* fix the multi-column load #376 (#413)

* fix the multi-column load #376

* preparations for the release

* pixi update

* updated EasyScience dep

* pre-release doc fixes

* correct units for scattering lengths #377 (#419)

* correct units for scattering lengths #377

* improved help and tests

* reparent example files properly (#420)

* minor fixes required for the updated GUI (#422)

* minor fixes required for the updated GUI

* PR review fixes #1

* PR review fixes

* 281 volume fraction (#421)

* Added volume fraction profile calculation and display. #281

* fixed CHANGELOG

* variable resolution fitting (#424)

* variable resolution fitting, initial commit

* PR review fixes

* 426 fix wrong curve (#428)

* fixed unique_name reuse for uncollected models #426

* added missing test

* added fit configuration owner #427 (#429)

* added fit configuration owner #427

* PR review fixes

* 425 multiple contrasts (#432)

* Multiple contrasts implementation improved. #425 issue #2

* PR review fixes

* another round of reviews

* added docs and notebook for multiple contrasts

* added multiple contrast docs and notebook

* fixed docs

* added a convergence integration test. (#436)

* Variable resolution fitting fixes from #425 p.3 (#437)

* Variable resolution fitting fixes from #425 p.3

* code review fixes

* updated README.md (#438)

* updated README.md

* slight modifications of README

* implemented fixes to the magnetism feature. #425, point 3. (#439)

* implemented fixes to the magnetism feature. #425, point 3.

* code review fixes

* update versioning

* PyPI test macOS fix and jupyterlab in dev extras (#443)

* Require macOS 14 in the PyPI package test project

The PyPI test workflow creates a fresh pixi project, which assumes macOS
13.0 on osx-arm64. scipp only ships macosx_14_0 wheels, so pixi fell back
to the sdist, and scipp 26.9.0 fails to compile against a 13.0 target
('to_chars' is unavailable: introduced in macOS 13.3). Match the macOS
minimum already set in the repository's pixi.toml.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Add jupyterlab to the dev extras

pixi.toml already installs it from conda; listing it in the dev extra
makes it part of pip install 'easyreflectometry[dev]' too.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* made the docstrings more obvious about the immutability of FitRun (#445)

* fixing summary using only 1st model #435 (#446)

* added planning MD file useful for agents (#440)

* added planning MD file useful for agents

* 433 summary figures (#447)

* fixing summary using only 1st model #435

* added fix for #433 - summary report only showing experiment 0 results

* fixed broken test

* fixed bug when replacing of existing sample in GUI (#448)

* Core 3.0 updates, part 1 (#450)

* stage 1 of converting ERL to EasyCore 3.0

* Core 3.0 updates, part 2 (#449)

* part2 -refnx update

* more fixes for CORE 3.0

* Core 3.0 updates, part 3 (#451)

* Core 3.0 updates, part 3

* Review fixes for Core 3.0 part 3

- Bilayer and SurfactantLayer constrain_solvent_roughness use constrain_equal
- MaterialMixture no longer passes the interface to its default materials
- Minimizers is exported from the easyreflectometry package

* pr fixes

* minor fix to the bayesian corner plot display

* update versioning

* updated pixi.lock

* updated pixi.lock

---------

Co-authored-by: Andrew Sazonov <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: easyscience[bot] <2476259+easyscience[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Chore changes to the code [priority] highest Urgent. Needs attention ASAP [scope] maintenance Code/tooling cleanup, no feature or bugfix (major.minor.PATCH)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants