Open fergalm opened 10 years ago
The way the code is currently written it require the number of planets included in the model to be known before the add_data method is called. I could spend some effort changing this or I could let it fail more gracefully.
I'm getting the following error
/home/fmullall/.local/lib/python2.7/site-packages/ktransit/ktransit.pyc in transitmodel(self) 183 self._transitmodel = transitmodel(self.nplanets, 184 sol,time,itime,self.ntt, --> 185 self.tobs,self.omc,datatype) 186 self._rvmodel = None 187
error: failed in converting 6th argument `tobs' of _tmodtom.transitmodel to C/Fortran array
With this code.
If I delay calling add_data() until after add_planet the error goes away. That doesn't seem like it's the expected behaviour.