Skip to content
Snippets Groups Projects

[AGIPD][DARK] Correctly retrieve old constants for comparison

Merged David Hammer requested to merge fix/agipd_dark_retrieve_correct_old_constants into master
1 unresolved thread

Part of https://git.xfel.eu/gitlab/calibration/planning/issues/56

This merge request is way longer than it should be because I messed up when merging https://git.xfel.eu/gitlab/detectors/pycalibration/merge_requests/478 - I developed that one against https://git.xfel.eu/gitlab/detectors/pycalibration/merge_requests/465 and I forgot to switch when merging. So https://git.xfel.eu/gitlab/detectors/pycalibration/merge_requests/465 was merged into master and then https://git.xfel.eu/gitlab/detectors/pycalibration/merge_requests/478/diffs was merged into https://git.xfel.eu/gitlab/detectors/pycalibration/merge_requests/465, never reaching master.

The plots were "fortunately" broken anyway by the erroneous old constant retrieval which is what this MR is actually supposed to fix. I've added comments to point out the two actual new things in this MR. The changes from https://git.xfel.eu/gitlab/detectors/pycalibration/merge_requests/478/diffs were reasonably tested back when I originally intended to merge it.

Edited by David Hammer

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
189 192 "print(f\"Detector instance {dinstance}\")"
190 193 ]
191 194 },
195 {
196 "cell_type": "code",
197 "execution_count": null,
198 "metadata": {},
199 "outputs": [],
200 "source": [
201 "timestamp_before_processing = datetime.now().isoformat()"
  • David Hammer added 1 commit

    added 1 commit

    • 088a0cc4 - Use prior_in_time with offset from creation_time instead

    Compare with previous version

  • 666 664 " # TODO: Set db_module to \"\" by default in the first cell\n",
    667 665 "\n",
    668 666 " data, mdata = get_from_db(\n",
    669 " karabo_id,\n",
    670 " qm_dict[qm][\"karabo_da\"],\n",
    667 " karabo_id=karabo_id,\n",
    668 " karabo_da=qm_dict[qm][\"karabo_da\"],\n",
    671 669 " constant=dconst,\n",
    672 670 " condition=condition,\n",
    673 671 " empty_constant=None,\n",
    674 672 " cal_db_interface=cal_db_interface,\n",
    675 " creation_time=creation_time,\n",
    673 " creation_time=creation_time-timedelta(seconds=1),\n",
  • David Hammer added 1 commit

    added 1 commit

    • 0261705f - Revert support for snapshot_at in get_from_db

    Compare with previous version

  • Karim Ahmed
  • David Hammer added 1 commit

    added 1 commit

    Compare with previous version

  • David Hammer unmarked as a Work In Progress

    unmarked as a Work In Progress

  • Karim Ahmed
  • beside few comments, LGTM

  • David Hammer added 1 commit

    added 1 commit

    Compare with previous version

  • Cyril Danilevski
  • David Hammer added 1 commit

    added 1 commit

    • e47fd2dd - Apply suggestion to notebooks/generic/overallmodules_Darks_Summary_NBC.ipynb

    Compare with previous version

  • David Hammer added 1 commit

    added 1 commit

    • 8e40bd2f - Add comment warning to use local_output for summary

    Compare with previous version

  • David Hammer enabled an automatic merge when the pipeline for 8e40bd2f succeeds

    enabled an automatic merge when the pipeline for 8e40bd2f succeeds

  • merged

  • David Hammer mentioned in commit c66ee33f

    mentioned in commit c66ee33f

  • Please register or sign in to reply
    Loading