AguaClara / aide_document-DEPRECATED

This module is no longer being maintained due to the transition to Onshape.
MIT License
0 stars 0 forks source link

Abstract away from hard coded json keys + latex variable names #3

Closed matanp closed 6 years ago

matanp commented 6 years ago

Improve on prototype by no longer having to use hard coded json keys and variable names.

Make each json key map to a latex variable with the same name. Be able to add keys to the json file and have it run without needing to update python code.

matanp commented 6 years ago

Implemented:

Loop through all keys in json file, and turn them into a latex variable with the same name.

Currently can handle json structures similar to:

{ "key": 4} and {"key": { "value": 4, "units": "mg/l" } }