Skip to content
Snippets Groups Projects
Commit f7c84f3a authored by Kelvin Rodriguez's avatar Kelvin Rodriguez Committed by Jesse Mapel
Browse files

voyager now fails if instrument name is not VOYAGER (#279)

* voyager now fails if inst name is not VOYAGER

* more explicit error

* sick coding is bad coding
parent 8867ebc2
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,10 @@ class VoyagerCameraLabelNaifSpiceDriver(Framer, IsisLabel, NaifSpice, Driver):
@property
def spacecraft_name(self):
return super().spacecraft_name.replace('_', ' ')
name = super().spacecraft_name.replace('_', ' ')
if name.split(' ')[0] != "VOYAGER":
raise Exception("{name} for label is not a valid Voyager spacecraft name")
return name
@property
def pixel_size(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment