Skip to content

Conversation

@ourmoa
Copy link
Contributor

@ourmoa ourmoa commented Dec 19, 2022

No description provided.

@ourmoa ourmoa linked an issue Dec 19, 2022 that may be closed by this pull request
ourmoa and others added 3 commits December 27, 2022 10:50
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]
"""

Copy link
Collaborator

@ourmarina ourmarina Dec 28, 2022

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()
Copy link
Collaborator

@ourmarina ourmarina Dec 28, 2022

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 == ...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Equal class to plog

4 participants