Feat&fix: (FastCCD CORRECTION) add bools to control correction steps
Merge request reports
Activity
added 1 commit
- ef857c35 - update fastccd nb corr depend on michele and kiana comments
458 " condition = Conditions.Illuminated.CCD(bias_voltage=bias_voltage,\n", 459 " integration_time=integration_time,\n", 460 " gain_setting=det_gain,\n", 461 " temperature=temperature_k,\n", 462 " pixels_x=x, pixels_y=y,\n", 463 " photon_energy=photon_energy_gain_map)\n", 464 "\n", 465 " relgain, relgain_time = get_constant_from_db_and_time(device=Detectors.fastCCD1,\n", 466 " constant=relgain,\n", 467 " condition=condition,\n", 468 " empty_constant=None,\n", 469 " cal_db_interface=cal_db_interface, \n", 470 " creation_time=creation_time,\n", 471 " timeout=cal_db_timeout, print_once=False)\n", 472 "\n", 473 " # TODO: CHECK IF THIS FLIPPING IS CORRECT\n", 735 753 "offsetMap = np.squeeze(offsetMap)\n", 736 754 "noiseMap = np.squeeze(noiseMap)\n", 737 755 "badPixelMap = np.squeeze(badPixelMap)\n", 738 "relGain = np.squeeze(relGain)\n", 756 "if corr_bools.get('relgain'):\n", 757 " #TODO: This should be removed after properly injecting gain const for all 3 gains\n", @cascella @setoodeh I have applied some changes regards to our meeting 2 weeks ago. please test and review this notebook for merging the changes to the master if it is ok.
There are two parts which are not updated yet. mainly checking if the relgain flipping is correct or not.
I have pointed to these points in the discussion for these MR.
I introduced a check for presence of relative gain constants. They are not available for some runs. Now correction for runs 448 and 353 works (FastCCDDataCorrection.pdf, FastCCDDataCorrection.pdf).
Version of the notebook from master does not work due to outdated common-code correction. I would suggest to proceed with this version to have at working version in production.
Present changes in the MR fixes common mode correction (FastCCDDataCorrection.pdf).
Edited by Mikhail KarnevskiySo what is the state of this Notebook after the last fix for the relative gain retrieval? @setoodeh Should we merge this notebook?