zhuminjie / OpenSeesPy

OpenSeesPy versions, doc, and pip
Other
167 stars 66 forks source link

printModel command produces invalid json file when there's no elements in the model #130

Closed leiweikuang closed 6 months ago

leiweikuang commented 6 months ago

When using the printModel command to print to a .json file when there's no elements defined in the model, the output json file is invalid as the closing square bracket under "elements" is missing.

The issue is fixed after adding elements to the model then run the printModel command.

mhscott commented 6 months ago

This is likely not an OpenSeesPy issue. Please post as an issue on github.com/OpenSees/OpenSees and also give more detail and a minimal example that demonstrates the issue.