-
Notifications
You must be signed in to change notification settings - Fork 49
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
Massive commit of decoupling from mongo and addinng a PanFileDB type #414
Changes from all commits
cdfe041
c0e626d
5da15e9
6ad25d9
98a4651
b4ba387
a1d3016
4a3a181
ee9a351
86f652c
e1fb72d
89c6269
7ffb3cf
5463843
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
|
||
from astropy import units as u | ||
from astropy.io import fits | ||
from astropy.time import Time | ||
|
||
from pocs.camera import AbstractCamera | ||
from pocs.utils.images import fits as fits_utils | ||
|
@@ -76,8 +75,9 @@ def take_exposure(self, seconds=1.0 * u.second, filename=None, dark=False, block | |
# Build FITS header | ||
header = self._fits_header(seconds, dark) | ||
|
||
# Set up a Timer that will wait for the duration of the exposure then copy a dummy FITS file | ||
# to the specified path and adjust the headers according to the exposure time, type. | ||
# Set up a Timer that will wait for the duration of the exposure then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We keep having little formatting/cleanup changes like these inside of bigger changes. Perhaps after this you'd be willing to do another PR that scrubs the whole repo? No need to remove this change from ths PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good idea. I've just been doing them as I see them, which does pollute the PR some. |
||
# copy a dummy FITS file to the specified path and adjust the headers | ||
# according to the exposure time, type. | ||
exposure_event = Event() | ||
exposure_thread = Timer(interval=seconds, | ||
function=self._fake_exposure, | ||
|
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.
When should we switch to the new type?
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 actually want to add an sqlite type and make that the default. I think the flat file is a good alternative but I'm not sure ideal.