Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ma json writer optimize #94

Merged
merged 9 commits into from
Nov 7, 2023
Prev Previous commit
Next Next commit
MAJsonWriter visitors: need more
Original tests seem to work fine. Need more tests to cover all the cases.
passimens committed Oct 4, 2023
commit 21e1c5d1bcfb9101edb09237f016fd51771134db
2 changes: 2 additions & 0 deletions Magritte/MAJsonWriter_visitors.py
Original file line number Diff line number Diff line change
@@ -112,6 +112,8 @@ def _deeper(self, model: Any, description: MADescription) -> Union[Dict, List, A
self._json = prev_json
self._model = prev_model

return res

def visit(self, description: MADescription):
if self._model == description.undefinedValue:
return