Skip to content
Snippets Groups Projects

[Tests] Validate metadata for retrieved constants before validating the corrected files

Merged Karim Ahmed requested to merge test/check_retrieved_constants into master
1 unresolved thread

Description

This MR addresses: https://git.xfel.eu/calibration/pycalibration/-/issues/89

In case the retrieved constants are different, the tests should realize this before validating the corrected files. This help in understanding the reason for the test failure instead of spending time investigating why the files were not validated and have different values.

How Has This Been Tested?

  • Tested locally after changing parameters of one test to get the wrong Calibration constants.
  • CI-InProgress

Relevant Documents (optional)

Types of changes

  • Test (additional or refactored tests)

Checklist:

Reviewers

@kluyvert @schmidtp

Edited by Karim Ahmed

Merge request reports

Checking pipeline status.

Merged by Karim AhmedKarim Ahmed 1 year ago (Jan 9, 2024 8:20am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Karim Ahmed added 1 commit

    added 1 commit

    • e3e8b6d9 - use deepDiff to find difference in dictionaries

    Compare with previous version

  • Karim Ahmed added 1 commit

    added 1 commit

    • 8f5d9a28 - use deepDiff to find difference in dictionaries

    Compare with previous version

  • Karim Ahmed added 1 commit

    added 1 commit

    • a74c5a95 - use deepDiff to find difference in dictionaries

    Compare with previous version

  • Thanks, that diff output looks reasonable for giving us a sense of what has changed. Assuming the slow tests pass, this LGTM.

  • Thanks, LGTM!

    TIL deepdiff :thinking:

    • Author Owner

      Comments from the tests:

      1- DSSC doesn't have retrieved-constants stored in the calibration metadata.

      2- Correction for one of the ePix100 tests failed because previously we retrieved specific dark constants, however now we retrieved all dark constants and use only what we need in correction. This led to a test failure because badPixels was unavailable in the YAML file.

      • For this, I will update the reference folder for HED_IA1_EPX100-1-CORRECT test.

      3- Jungfrau and pnCCD didn't have retrieved-constants stored before in for the reference folder. I will also update the calibration metadata for all of the reference data for the correction of both detectors

      Edited by Karim Ahmed
    • Author Owner

      Updated the calibration metadata for correction reference runs for Jungfrau, ePix100, and pnCCD

    • Please register or sign in to reply
  • Karim Ahmed added 1 commit

    added 1 commit

    • 8cf458cc - remove automated_test key for setup and don't assume availability of...

    Compare with previous version

  • Karim Ahmed resolved all threads

    resolved all threads

  • Author Owner

    Thank you for the review!

  • merged

  • Karim Ahmed mentioned in commit f1255265

    mentioned in commit f1255265

  • Karim Ahmed changed milestone to %3.12.0

    changed milestone to %3.12.0

  • Please register or sign in to reply
    Loading