You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the element.ToJSON() function is not working properly, or at least not working as I expect. Apparently, it should be called with an Int64, but this throws a UndefVarError: getstring not defined error.
Here is an example, using the simple DSS file from Issue 101, where the file is saved as filename.dss:
The same error occurs with other Int64s, such as ToJSON(1). I suspect it should accept an Int32, rather than Int64. For example, this works: DSS.Circuit.ToJSON(Int32(1)).
@PMeira, thanks for your help and the excellent explanation on Issue 101. I thought I would also create an issue for this ToJSON problem in case you want to include a fix in the upcoming release.
The text was updated successfully, but these errors were encountered:
Sorry, @John-Boik, forgot to push the commit earlier. Fixed and added tests for that function for v0.9.9. We're planning an engine update for next week.
It appears that the element.ToJSON() function is not working properly, or at least not working as I expect. Apparently, it should be called with an Int64, but this throws a
UndefVarError:
getstringnot defined
error.Here is an example, using the simple DSS file from Issue 101, where the file is saved as filename.dss:
The same error occurs with other Int64s, such as ToJSON(1). I suspect it should accept an Int32, rather than Int64. For example, this works:
DSS.Circuit.ToJSON(Int32(1))
.@PMeira, thanks for your help and the excellent explanation on Issue 101. I thought I would also create an issue for this ToJSON problem in case you want to include a fix in the upcoming release.
The text was updated successfully, but these errors were encountered: