-
Notifications
You must be signed in to change notification settings - Fork 0
Adding Equal class to plog #119
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: ourmarina <121033780+ourmarina@users.noreply.github.com>
Co-authored-by: ourmarina <121033780+ourmarina@users.noreply.github.com>
| [A: +(x,y,z)>=2, A: -(x,y,z)>=-2] | ||
| [VAR658adc74c6913fb83b42c3968866f4bdb967fcad34692fc71d3de5f9a94b6970: -(x,y,z)>=-2, VARe4568f4a0e4e55b7e3afa57b3527153272b53fde10f6e292b510a5c3bf797d3d: +(x,y,z)>=2] | ||
| """ | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to add here that you added the methods to/from json?
Methods
-------
from_json
to_json
And: Do you need the method from_list?
| assert json_model == pg.AtMost.from_json(json_model, [puan.variable]).to_json() | ||
|
|
||
| json_model = {"type": "Equal", "value": 1, "id": "A", "propositions": [{"id": "x", "bounds": {"lower": -10, "upper": 10}}]} | ||
| assert pg.from_json(json_model).to_json() == pg.Equal.from_json(json_model, [puan.variable]).to_json() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is json_model not a json to begin with? Can this not be the same as line 1322 assert json_model == ...?
No description provided.