-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I am trying to add annotations to FunctionalComponents and I am able to do so in pySBOL version 2.3.0.post10 but when I try to do it in 2.3.0.post20 or 2.3.1.post0 I get a LookupError. Here is the code I am using:
valueURI = temp.identity + '#hasNumericalValue'
temp.setAnnotation(valueURI,stringval)
where 'temp' is my FunctionalComponent and 'stringval' is the string version of the value I am trying to add as an annotation. This value represents a numerical measurement.
Here is the error I am getting when using 2.3.0.post20 or 2.3.1.post0:
Traceback (most recent call last):
File "experimentdnaexcel.py", line 198, in
temp.setAnnotation(valueURI,stringval)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sbol/libsbol.py", line 2905, in setAnnotation
return _libsbol.SBOLObject_setAnnotation(self, property_uri, val)
LookupError: http://bu.edu/dasha/JHT10_sample_5F0S/pBW465/1#hasNumericalValue not contained in this object.
Am I setting the annotations incorrectly? It is strange because the code works correctly in the older version. Any help would be appreciated.