Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions soar_instruments/goodman/adclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ def _tag_blue(self):

@astro_data_tag
def _tag_image(self):
if self.phu.get('CAM_ANG') == 0 and self.phu.get('WAVMOD') == 'Imaging':
print(self.phu.get('WAVMODE'))
if self.phu.get('CAM_TARG') == 0 and self.phu.get('WAVMODE') == 'Imaging':
return TagSet(['IMAGE'])

@astro_data_tag
def _tag_spect(self):
if self.phu.get('CAM_ANG') != 0 and self.phu.get('WAVMOD') != 'Imaging':
if self.phu.get('CAM_TARG') != 0 and self.phu.get('WAVMODE') != 'Imaging':
return TagSet(['SPECT'])


Expand Down
7 changes: 7 additions & 0 deletions soardr/goodman/primitives_goodman.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@ def gudayMate(self, *args, **kwargs):
log.stdinfo("Coming to you from {}.".format(self.myself()))

return

def goodmanPrimitive(self, *args, **kwargs):
log = self.log
log.stdinfo(gt.log_message(" This is a ", self.myself()))
for ad in self.adinputs:
log.stdinfo("The file name is: {}".format(ad.filename))
log.stdinfo("Tags are: {}".format(ad.tags))
14 changes: 14 additions & 0 deletions soardr/goodman/recipes/qa/recipes_IMAGE.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
Test recipe for GOODMAN IMAGE data.

"""

recipe_tags = set(['GOODMAN', 'IMAGE'])

def grecipe(p):
p.helloWorld()
p.gudayMate()
p.goodmanPrimitive()
return

default = grecipe
1 change: 1 addition & 0 deletions soardr/goodman/recipes/qa/recipes_SPECT.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
def grecipe(p):
p.helloWorld()
p.gudayMate()
p.goodmanPrimitive()
return

default = grecipe