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
Tickets/dm 5503 #23
Conversation
There was a problem hiding this 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): | ||
|
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
class SelectLsstSimFluxMag0Config(DatabaseSelectImagesConfig): | ||
|
There was a problem hiding this comment.
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): | ||
|
There was a problem hiding this comment.
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): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
class SelectLsstImagesConfig(DatabaseSelectImagesConfig): | ||
|
There was a problem hiding this comment.
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): | ||
|
There was a problem hiding this comment.
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): | |||
|
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space around -
.
09c937e
to
b0968fa
Compare
I fixed the spacing around - added support for darkTime, rebased and pushed |
b0968fa
to
17f9d72
Compare
17f9d72
to
4df8510
Compare
No description provided.