Skip to content

Conversation

@olliesilvester
Copy link
Contributor

@olliesilvester olliesilvester commented Sep 3, 2025

Part of #1200
Prerequisites for CI to pass: DiamondLightSource/dodal#1721

Instructions to reviewer on how to test:

  1. Do thing x
  2. Confirm thing y happens

Checks for reviewer

  • Would the PR title make sense to a user on a set of release notes

@DominicOram DominicOram added the jungfrau Changes relating to the jungfrau detector label Oct 30, 2025
@DominicOram
Copy link
Contributor

@olliesilvester will integrate @ndevenish's path provider for now with an aim to get this merged ASAP

@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

❌ Patch coverage is 99.28826% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.50%. Comparing base (58f0ca1) to head (4cb4d6f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1234      +/-   ##
==========================================
+ Coverage   92.28%   92.50%   +0.22%     
==========================================
  Files         143      149       +6     
  Lines        8126     8314     +188     
==========================================
+ Hits         7499     7691     +192     
+ Misses        627      623       -4     
Components Coverage Δ
i24 SSX 78.56% <ø> (ø)
hyperion 97.86% <100.00%> (-0.09%) ⬇️
other 98.26% <99.25%> (+0.26%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.


def __init__(self):
def __init__(self, jf_writer: JungfrauCommissioningWriter):
self.jf_writer = jf_writer # For path information
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't really like the addition of JungfrauCommissioningWriter to the callback.
Although the callback is currently in-process, adding it does prevent the callback being run externally. It seems like the only reason we have it is in order to access the final_path - is there any reason why it could not have been exposed as a signal on the writer and passed through in the event document?

I think that's cleaner as it also means that the event captures the value and means this event can be processed asynchronously.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds like a good idea, thanks

"scan_points": [params.scan_points],
"rotation_scan_params": params.model_dump_json(),
}
# Should check topup gate here, but not yet implemented,
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we actually currently using the external callbacks for JF?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, internal only for JF right now

@rtuck99
Copy link
Contributor

rtuck99 commented Jan 13, 2026

I think this last batch of changes could probably have done with being another PR instead of making an already large PR larger.

@olliesilvester
Copy link
Contributor Author

olliesilvester commented Jan 14, 2026

Discussed with @rtuck99 . We will merge this after addressing #1234 (comment).

Likely to be lots of issues since this is a big change which hasn't been tested on the beamline for a while. We want to get it merged as it keeps getting stale

assert_allclose(actual_output[key], expected_output[key])


async def test_assertion_error_if_no_jf_path_found(
Copy link
Contributor

Choose a reason for hiding this comment

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

feels like these two could share more code

Copy link
Contributor

@rtuck99 rtuck99 left a comment

Choose a reason for hiding this comment

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

Looks good now, only minor comment about those two test functions.

Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jungfrau Changes relating to the jungfrau detector

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants