Property
Usage
- Searches by name if the node doesn't exist it creates it otherwise updates it
- Idempotent operation
from cript import *
prop1 = Property(key="air_flow", type="number", unit="L/s", value=1)
mat1=Material(name="col1", property=[prop1])
proj = Project(
name="Change Project Name",
material=[mat1]
)
print(proj)
Attributes
attribute | type | example | description | required | vocab |
---|---|---|---|---|---|
key | str | enthalpy | type of property | True | Material (Name) Process (Name) ComputationProcess (Name) |
type | str | min | type of value stored | True | Material (Value_type) Process (Name) ComputationProcess (Name) |
value | Any | 1.23 | value or quantity | True | |
unit | str | gram | unit for value | True | |
uncertainty | Number | 0.1 | uncertainty of value | ||
uncertainty_type | str | standard_deviation | type of uncertainty | Name | |
component | list[Material] | material that the property relates to** | |||
structure | str | {[[\]\[$\]\[C:1\]\[C:1\]\[$\] | specific chemical structure associate with the property with atom mappings** | ||
method | str | sec | approach or source of property data | Material (Method) Process (Method) ComputationProcess (Method) |
|
sample_preparation | Process | sample preparation | |||
condition | list[Condition] | conditions under which the property was measured | |||
data | Data | data node | |||
computation | list[Computation] | computation method that produced property | |||
citation | list[Citation] | reference to a book, paper, or scholarly work | |||
notes | str | miscellaneous information, or custom data structure (e.g.; JSON) |