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

Tickets/dm 5503 #23

Merged
merged 4 commits into from Oct 5, 2016
Merged

Tickets/dm 5503 #23

merged 4 commits into from Oct 5, 2016

Conversation

r-owen
Copy link
Contributor

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

No description provided.

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.

Just little stuff.

class ProcessEimageConfig(ProcessCcdTask.ConfigClass):

Copy link
Contributor

Choose a reason for hiding this comment

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

This extra line looks wrong. And there's supposed to be a blank line after the class docstring.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree it looks funny, but unfortunately it is correct PEP8 and is what autopep8 did to the code. The rules are (at least approximately):

  • A blank line is required after the class declaration before the doc string. This looks wrong to me, but it's PEP8.
  • A blank line is required before each method definition. This is why the class doc string often has a blank line after it (not because the doc string must be followed by a blank line).


class ProcessEimageTask(ProcessCcdTask):

Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

class SelectLsstSimFluxMag0Config(DatabaseSelectImagesConfig):

Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

self.host = "lsst-db.ncsa.illinois.edu"
self.port = 3306


class FluxMagInfo(BaseExposureInfo):

Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

class SelectLsstSimFluxMag0Task(pipeBase.Task):

Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

class SelectLsstImagesConfig(DatabaseSelectImagesConfig):

Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

def setDefaults(self):
super(SelectLsstImagesConfig, self).setDefaults()
self.host = "lsst-db.ncsa.illinois.edu"
self.port = 3306


class ExposureInfo(BaseExposureInfo):

Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

@@ -103,18 +107,19 @@ def getColumnNames():


class SelectLsstImagesTask(BaseSelectImagesTask):

Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

dateObs = DateTime(49552.28496, DateTime.MJD, DateTime.TAI)
self.dateAvg = DateTime(dateObs.nsecs(DateTime.TAI) + int(0.5e9*self.exposureTime), DateTime.TAI)
self.boresightRaDec = IcrsCoord(359.936019771151*degrees, -2.3356222648145*degrees)
self.boresightAzAlt = Coord(127.158246182602*degrees, (90-40.6736117075876)*degrees)
Copy link
Contributor

Choose a reason for hiding this comment

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

Space around -.

@r-owen
Copy link
Contributor Author

r-owen commented Sep 30, 2016

I fixed the spacing around - added support for darkTime, rebased and pushed

@r-owen r-owen merged commit 4df8510 into master Oct 5, 2016
@ktlim ktlim deleted the tickets/DM-5503 branch August 25, 2018 05:50
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