Skip to content

Commit

Permalink
remove unnecessary statement
Browse files Browse the repository at this point in the history
  • Loading branch information
simontorres committed Jul 26, 2024
1 parent 77579d9 commit a5a686d
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 18 deletions.
4 changes: 0 additions & 4 deletions goodman_pipeline/images/data_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,3 @@ def _get_obs_technique(self):
# inform the results, no need to return
self.log.info('Detected {:s} Data from {:s} '
'Camera'.format(self.technique, self.instrument))


if __name__ == '__main__':
pass
4 changes: 0 additions & 4 deletions goodman_pipeline/images/image_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,3 @@ def process_imaging_science(self, imaging_group):
log.info('Created science file: {:s}'.format(final_name))
else:
log.error('Can not process data without a master flat')


if __name__ == '__main__':
pass
2 changes: 1 addition & 1 deletion goodman_pipeline/scripts/redccd
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ if '-h' not in sys.argv and \
'--version' not in sys.argv:
setup_logging()

if __name__ == '__main__':
if __name__ == '__main__': # pragma: no cover
GOODMAN_CCD = MainApp()
GOODMAN_CCD()
2 changes: 1 addition & 1 deletion goodman_pipeline/scripts/redspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ if '-h' not in sys.argv and \
setup_logging()


if __name__ == '__main__':
if __name__ == '__main__': # pragma: no cover
GOODMAN_SPECTROSCOPY = MainApp()
GOODMAN_SPECTROSCOPY()
4 changes: 0 additions & 4 deletions goodman_pipeline/spectroscopy/wavelength.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,3 @@ def _save_wavelength_calibrated(self,
parent_file=original_filename)

return file_full_path


if __name__ == '__main__': # pragma: no cover
sys.exit('This can not be run on its own.')
4 changes: 0 additions & 4 deletions goodman_pipeline/wcs/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,3 @@ def get_model(self):
return self.model
else:
self.log.error("The solution hasn't been found")


if __name__ == '__main__':
pass

0 comments on commit a5a686d

Please sign in to comment.