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

AMR issues with pde petrinets #78

Open
4 tasks
sabinala opened this issue Jan 17, 2024 · 5 comments
Open
4 tasks

AMR issues with pde petrinets #78

sabinala opened this issue Jan 17, 2024 · 5 comments
Assignees

Comments

@sabinala
Copy link

When trying to use the petrinet AMRs from this directory to solve PDEs with PyCIEMSS, I found a few issues with the AMRs:

  • The "header" is too far to the right, needs one less level of indentation
  • The "schema" key needs to be changed from "schema_" to "schema" in line 15 here
  • We need to double check which version of petrinet schema should be used (currently you're using v0.1, but I think we have up to v0.6 now)
  • Cannot have null for "grounding" but it can be empty, as in "grounding": {},

P.S. there's a typo in Drisana's last name should be Mosaphir, or Iverson (Mosaphir)

@sabinala
Copy link
Author

@danbryce After correcting the AMR issues, I'm still getting a Runtime error so I don't have results yet, but I will track down what's going on and get back to you.

@danbryce
Copy link
Contributor

@sabinala Thanks for the feedback. I've updated the PR #77 to address a few of your points, summarized as follows:

  • header: whitespace isn't important for json, but I've set serialization to use an indent of 4. Please let me know if I didn't catch your meaning.
  • schema: fixed
  • version: I believe this is the model version, not the schema version. I can modify if needed, but I verified that the instances validate using the testing infrastructure (see test subdirs and output errors #79 ).
  • nulls: I've modified the serialization to avoid emitting null values.

I think most of these issues are based on how I'm generating python from the json schema and then serializing it with pydantic. It should be correct (for some definition of correct), but needed some care with the serialization flags.

@sabinala
Copy link
Author

@danbryce Thank you. I may have misinterpreted the error message re: the header, it said something about this needing to be the first thing in the file, so as long as what follows is further indented, it should be ok.
I'll try using these AMRs again later today.

@danbryce
Copy link
Contributor

danbryce commented Jan 18, 2024 via email

@sabinala
Copy link
Author

@danbryce ok thanks, I'll take a look at that. The error is coming from PyCIEMSS when trying to read the AMR.

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

No branches or pull requests

2 participants