Open cxrodgers opened 2 years ago
What the heck i'm also getting this, but am sure that this worked because there's a roundtrip test of getting and setting from the widget here: https://github.com/auto-pi-lot/autopilot/blob/04b5968ba02c8a1413a27eb6a138b6a186b130f1/tests/test_gui/test_widget_model.py#L41
In any case i'm going to make a more informative error message when validating (there already is one, but this happens before it: https://github.com/auto-pi-lot/autopilot/blob/04b5968ba02c8a1413a27eb6a138b6a186b130f1/autopilot/gui/widgets/model.py#L234-L243
1 second
We need a test for the test! :laughing:
OK got it:
https://github.com/auto-pi-lot/autopilot/commit/0a2f081369b794920e62c1afee9e8cbf2e681dd6
see the diff there for specifics, but in short:
ast.literal_eval
chokes on an empty stringlmk if that doesn't work.
edit: i am pretty happy with the design of that model widget and the inputs, it was pretty easy and very clear how to make that fix. sigh if only I had known how to write decent code when I started autopilot lol. Oh well! fixing it up piece by piece.
Works great, thanks!
I am on the
dev
branch, so v0.5. I'm having trouble creating a subject by clicking the "+" in the Terminal GUI under the green button.If I complete the subject's "id" textbox, but none of the other optional fields, and click "OK" I get this:
If I put text in all the optional fields in the bio, I get this