Skip to content

Conversation

@ptsOSL
Copy link
Collaborator

@ptsOSL ptsOSL commented Oct 2, 2025

Waiting for the diamond2-conversion merge into main to happen first.

@ptsOSL ptsOSL changed the base branch from main to diamond2-conversion October 2, 2025 10:13
@ptsOSL ptsOSL changed the base branch from diamond2-conversion to main October 2, 2025 10:14
@ptsOSL ptsOSL force-pushed the toggle-sim-behaviour branch 2 times, most recently from a11ec27 to fbabe15 Compare October 10, 2025 15:02
Allow selecting linopt function, disabling chromaticity aand
disabling radiation
Also fix some tests which were broken by reordering of
function arguments
@ptsOSL ptsOSL force-pushed the toggle-sim-behaviour branch from fbabe15 to 0a27483 Compare October 13, 2025 10:53
@codecov
Copy link

codecov bot commented Oct 13, 2025

Codecov Report

❌ Patch coverage is 81.13208% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.84%. Comparing base (eed5656) to head (eec4a53).
⚠️ Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
src/atip/simulator.py 81.25% 9 Missing ⚠️
src/atip/utils.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #56      +/-   ##
==========================================
- Coverage   86.73%   85.84%   -0.89%     
==========================================
  Files           6        6              
  Lines         392      431      +39     
==========================================
+ Hits          340      370      +30     
- Misses         52       61       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@ptsOSL ptsOSL requested a review from MJGaughran October 13, 2025 11:16
The CI is failing after python 3.11 due to a cothread seg
fault. These version of cothread are known to be unreliable so,
remove support for python 3.12 and 3.13 until after we have
switched from cothread to asyncio
@ptsOSL
Copy link
Collaborator Author

ptsOSL commented Oct 13, 2025

I had to remove support for python 3.12 and python 3.13 as the tests were causing cothread to segfault. As we will shortly be switching to asyncio I think it is better to just stop supporting these python versions rather than figuring out what is causing the seg fault. After the switch we can support them again.

There will be a corresponding update to Virtac
We now use enable_6d instead of the misleading radiation_on,
enable_6d is only called for linopt6. Also modify the validation
exceptions to be more accurate
This will mean that post_init is called if anyone later modifies
the attributes of the dataclass. This ensure validation always
MJGaughran
MJGaughran previously approved these changes Oct 14, 2025
Now that disabling emittance on an existing ATSimulator isnt
supported, it makes more sense to have two seperate tests
one which tests a simulator with and one without emittance
disabled. Rather than testing both at once
Copy link
Contributor

@MJGaughran MJGaughran left a comment

Choose a reason for hiding this comment

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

I don't think the tests are perfect, but after discussing this seems like a reasonable improvement over the original ones.

It would be good to distinguish between coverage and other failures in the CI, but I don't know how much of a pain that is with the copier template. I'll make sure to double check cause of failures in instances like this, in future.

@ptsOSL ptsOSL merged commit c4011f3 into main Oct 15, 2025
14 of 16 checks passed
@ptsOSL ptsOSL deleted the toggle-sim-behaviour branch October 15, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants