Skip to content
Snippets Groups Projects

Fix: LPD DARK Reading of saved constants

Merged Mikhail Karnevskiy requested to merge fix/file_reading into master
1 unresolved thread

@ahmedk

Changes in the saved constants (previous MR) requires corresponding changes in the summary chanter.

Merge request reports

Approval is optional

Merged by Mikhail KarnevskiyMikhail Karnevskiy 5 years ago (Jan 27, 2020 1:29pm UTC)

Merge details

  • Changes merged into master with 409fb398.
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
69 " for cKey in f.get(mKey):\n",
70 " if cKey not in data[mKey]:\n",
71 " #print(\"/\".join((mKey, cKey, '0', 'data')))\n",
72 " data[mKey][cKey] = f.get(\n",
73 " \"/\".join((mKey, cKey, '0', 'data'))).value\n"
59 "# Loop over modules\n",
60 "for i in range(16):\n",
61 " qm = \"Q{}M{}\".format(i//4 + 1, i % 4 + 1)\n",
62 " # loop over constants\n",
63 " for const in ['Offset', 'Noise', 'BadPixelsDark']:\n",
64 " det = getattr(Detectors.LPD1M1, qm, None)\n",
65 " if det is None:\n",
66 " continue\n",
67 " det_name = det.device_name\n",
68 "\n",
69 " fpath = '{}/const_{}_{}.h5'.format(out_folder, const, det_name)\n",
  • added 1 commit

    • dad1a989 - Fix reading of saved constants

    Compare with previous version

  • mentioned in commit 409fb398

  • Please register or sign in to reply
    Loading