-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Certain Ontologies models may share data via ptolemy.data.expr.Constants #316
Comments
There was a bug where running $PTII/ptolemy/data/ontologies/test/auto/MonotonicityAnalysis.xml and then running $PTII/ptolemy/data/ontologies/test/auto/MultiplyDivideUnits.xml resulted in a stack trace: Caused by: ptolemy.kernel.util.InternalErrorException: Because: In turns out the problem was objects are being adding to the static Constants Hashtable The constructor to I updated OntologySolverBase to have: The problem is that when we parse the second model, we check to see if a Constant is present. For example, the two models share a Constant named "Position". When I run the second model, I can see that parsing looks for Position:
ptolemy.data.ontologies.OntologySolver.configure(OntologySolver.java:131) is the only ontology class in the stack trace. Ben Lickly correctly pointed out that it is still the case Probably we should have a separate Constants object that is |
Note: the issue was created automatically with bugzilla2github tool
Original bug ID: BZ#522
From: @cxbrooks
Reported version: 9.1.devel
CC: pt-dev@chess.eecs.berkeley.edu
The text was updated successfully, but these errors were encountered: