Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for exposure time and date not in Calib #21

Merged
merged 1 commit into from Oct 5, 2016
Merged

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented Sep 28, 2016

Update all code that used exposure time or date in Calib,
switching to VisitInfo instead.

Copy link
Contributor

@PaulPrice PaulPrice left a comment

Choose a reason for hiding this comment

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

Some trivial fixes.

outCalib.setExptime(inCalib.getExptime())
outCalib.setMidTime(inCalib.getMidTime())

# note: Calib is not copied, presumably because it is assumed uknown in raw data
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: "uknown".

@@ -528,7 +528,8 @@ def run(self, ccdExposure, bias=None, linearizer=None, dark=None, flat=None, def
if self.config.doFringe and self.config.fringeAfterFlat:
self.fringe.run(ccdExposure, **fringes.getDict())

ccdExposure.getCalib().setFluxMag0(self.config.fluxMag0T1 * ccdExposure.getCalib().getExptime())
exposureTime = ccdExposure.getInfo().getVisitInfo().getExposureTime()
ccdExposure.getCalib().setFluxMag0(self.config.fluxMag0T1 * exposureTime)
Copy link
Contributor

Choose a reason for hiding this comment

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

No space around *.

@r-owen
Copy link
Contributor Author

r-owen commented Sep 28, 2016

Thank you for the error reports. I will fix and rebase.

@r-owen r-owen force-pushed the tickets/DM-5503 branch 2 times, most recently from ef679eb to ebad5bc Compare September 29, 2016 17:01
@r-owen
Copy link
Contributor Author

r-owen commented Sep 30, 2016

Fixed and rebased

Update all code that used exposure time or date in Calib,
switching to VisitInfo instead.
@r-owen r-owen merged commit 73962dd into master Oct 5, 2016
@ktlim ktlim deleted the tickets/DM-5503 branch August 25, 2018 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants