-
Notifications
You must be signed in to change notification settings - Fork 3
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
Q7 online #445
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
You should add GBTOnline and GBTOffline to dysh/fits/init.py so they can be imported directly from dysh.fits as we do with GBTFITSLoad. |
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 tried it out on gb machines, works as expected except my comments about *args in GBTOnline/Offline, catcher for subbeamnod, and init.py. Fix those and I'll approve.
reminding myself too: can't write the dunder init, but have to write with two backslashes up front __init__ and the rest is history |
gets me every time |
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.
Nice job! I tried on on gb machine, works as expected.
Need to keep an eye open now for performance (e.g. is there a longer and longer wait) as the file grows |
This PR implements the equivalent of the GBTIDL routines "online" and "offline".
sdf = GBTOnline()
Monitors new data in $SDFITS_DATA, $DYSH_DATA/sdfits or /home/sdfits (in that order).
Any of the "sdf" functions "summary()", "gettp()" etc.
will check if new data have arrived and refresh the "sdf" object automatically
(user is informed if that happens).
sdf = GBTOnline('foo')
Monitor a specific project. Possibly an unusual mode, but this mode exists.
sdf = GBTOffline('foo')
Load a specific project, and is thus functionally similar to GBTFITSLoad('foo')