You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you be open to dynamic class creation in the ball cosmos python api?
This would let tab completion work in ipython, and it makes scripting easier.
ie in python .
cosmos=CosmosSystem()
print(cosmos.Targets.TargetName.Tlm.TlmPacketName.TlmPacketPoint.value)
# Wait for packetcosmos.Targets.TargetName.Tlm.TlmPacketName.Wait()
# Command examplecmd=cosmos.Targets.TargetName.Cmd.CmdPacketName()
cmd.cmd_value=3cmd.Send()
The text was updated successfully, but these errors were encountered:
Hello thanks for your interest in the ballcosmos library for cosmos. Currently the deign of the library is to be as similar to the ruby library so users can read both without having to know major differences. I think this is a good idea, but I think this is better for a separate library . Something we can expand on going into cosmosc2 for cosmos v5.
Ok, i have something prototyped that does this using dynamic class creation / setattr / getattr calls.
Ping me when / if this would be useful.
Feel free to close the issue.
Would you be open to dynamic class creation in the ball cosmos python api?
This would let tab completion work in ipython, and it makes scripting easier.
ie in python .
The text was updated successfully, but these errors were encountered: