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

Malformed JSON using opflow -save_output #134

Open
2 of 13 tasks
nedpfeiffer opened this issue Mar 29, 2024 · 0 comments
Open
2 of 13 tasks

Malformed JSON using opflow -save_output #134

nedpfeiffer opened this issue Mar 29, 2024 · 0 comments

Comments

@nedpfeiffer
Copy link
Collaborator

Issue type

  • New feature
  • Bug
  • Discussion
  • Other

Relates to

  • OPFLOW
  • SOPFLOW
  • SCOPFLOW
  • TCOPFLOW
  • CMake build system
  • Spack configuration
  • Manual
  • Web docs
  • Other

Summary

Opening this issue at the request of @abhyshr

When saving the output of opflow to JSON, the resulting JSON is malformed and then visualization fails. I found a temporary workaround, detailed below.

For reference, I used the Texas case files available here: https://electricgrids.engr.tamu.edu/electric-grid-test-cases/activsg2000/

Exact commands to reproduce, if applicable

opflow -netfile datafiles/ACTIVSg2000/ACTIVSg2000.m -save_output -opflow_output_format JSON -gicfile datafiles/ACTIVSg2000/ACTIVSg2000_GIC_data.gic

Relevant logs and/or screenshots, if applicable

jsonIssue

Possible fixes, if applicable

Removing the last comma fixes the issue, then I'm able to use opflowout.json for visualization. Not sure where that extra comma is coming from though.

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

1 participant