Hello, Using the python API to run a mission with a Spacecraft and an ImpulsiveBurn results in the following API exception
~/gmat-git/application/bin/gmatpy/gmat_py.py in Initialize(*args) 23606 23607 def Initialize(*args):> 23608 return _gmat_py.Initialize(*args) 23609 23610 def Clear(*args): APIException: The following objects were not initialized: TOI See the script below to reproduce this issue. Does the API support using the ImpulsiveBurn object? Does it require to be connected to another object or some other trick to get it to work? #============================= *# begin script* #============================= *from load_gmat import ** *# spacecraftsat = gmat.Construct("Spacecraft", "Sat")# force modelforce_model = gmat.Construct("ForceModel")# An 8x8 JGM-3 Gravity Model for Earthearthgrav = gmat.Construct("GravityField")earthgrav.SetField("BodyName","Earth")earthgrav.SetField("Degree",4)earthgrav.SetField("Order",4)earthgrav.SetField("PotentialFile","JGM2.cof")force_model.AddForce(earthgrav)# propagation containerpdprop = gmat.Construct("Propagator","PDProp")# Assign a numerical integratorgator = gmat.Construct("PrinceDormand78", "Gator")pdprop.SetReference(gator)# Burntoi = gmat.Construct("ImpulsiveBurn","TOI")# Assign the force model to the propagatorpdprop.SetReference(force_model)pdprop.AddPropObject(sat)# Perform top level initializationgmat.Initialize() # <- line where the API exception is thrown *
_______________________________________________ GMAT-developers mailing list GMAT-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gmat-developers