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
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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):