Skip to content

Error when passing dictionary of constant pprs

Passing a dictionary of constant PPRs as inputs for the orbit currently throws an error.

MWE:

mosas = ['12','23','31','13','32','21']
equalorbits = { mosa: 8.33 for mosa in mosas }

i_equal_oms = Instrument(size=1e5,
               dt=1/4,
               orbits=equalorbits,
               lock='six')

gives the error

...\instrument\lisainstrument\instrument.py in init_orbits(self, orbits, neglect_tps)
    497         else:
    498             logger.info("Using user-provided proper pseudo-ranges and derivatives thereof")
--> 499             if not self.neglect_tps:
    500                 logger.warning("Neglecting TPS despite configuration because user-provided PPRs are used")
    501             self.orbit_file = None

AttributeError: 'Instrument' object has no attribute 'neglect_tps'