Skip to content

Commit

Permalink
fixing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
InnocentBug committed Apr 24, 2024
1 parent c86e042 commit 6b06b8c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/cript/nodes/primary_nodes/computation_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def property(self) -> List[Any]:
Examples
--------
>>> import cript
>>> my_property = cript.Property(key="modulus_shear", type="min", value=1.23, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.23, unit="J")
>>> my_computation_process.property = [my_property] # doctest: +SKIP
Returns
Expand Down
2 changes: 1 addition & 1 deletion src/cript/nodes/primary_nodes/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ def property(self) -> List[Any]:
... name="my component material 1",
... smiles = "component 1 smiles",
... )
>>> my_property = cript.Property(key="modulus_shear", type="min", value=1.23, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.23, unit="J")
>>> my_material.property = [my_property]
Returns
Expand Down
2 changes: 1 addition & 1 deletion src/cript/nodes/primary_nodes/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def property(self) -> List[Any]:
--------
>>> import cript
>>> my_process = cript.Process(name="my process name", type="affinity_pure")
>>> my_property = cript.Property(key="modulus_shear", type="min", value=1.23, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.23, unit="J")
>>> my_process.property = [my_property]
Returns
Expand Down
34 changes: 17 additions & 17 deletions src/cript/nodes/subobjects/property.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Property(UUIDBaseNode):
| attribute | type | example | description | required | vocab |
|--------------------|-------------------|-----------------------------------------|------------------------------------------------------------------------------|----------|-------|
| key | str | modulus_shear | type of property | True | True |
| key | str | enthalpy | type of property | True | True |
| type | str | min | type of value stored | True | True |
| value | Any | 1.23 | value or quantity | True | |
| unit | str | gram | unit for value | True | |
Expand All @@ -58,10 +58,10 @@ class Property(UUIDBaseNode):
## JSON Representation
```json
{
"key":"modulus_shear",
"key":"enthalpy",
"node":["Property"],
"type":"value",
"unit":"GPa",
"unit":"J",
"value":5.0
"uid":"_:bc3abb68-25b5-4144-aa1b-85d82b7c77e1",
"uuid":"bc3abb68-25b5-4144-aa1b-85d82b7c77e1",
Expand Down Expand Up @@ -149,7 +149,7 @@ def __init__(
Examples
--------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
Returns
-------
Expand Down Expand Up @@ -197,7 +197,7 @@ def key(self) -> str:
Examples
--------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> my_property.key = "angle_rdist"
Returns
Expand Down Expand Up @@ -236,7 +236,7 @@ def type(self) -> str:
Examples
---------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> my_property.type = "max"
Returns
Expand Down Expand Up @@ -285,7 +285,7 @@ def set_value(self, new_value: Union[Number, str, None], new_unit: str) -> None:
Examples
---------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> my_property.set_value(new_value=1, new_unit="gram")
Parameters
Expand Down Expand Up @@ -345,7 +345,7 @@ def set_uncertainty(self, new_uncertainty: Optional[Number], new_uncertainty_typ
Examples
--------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> my_property.set_uncertainty(new_uncertainty=2, new_uncertainty_type="fwhm")
Returns
Expand Down Expand Up @@ -380,7 +380,7 @@ def component(self) -> List[Union[Material, UIDProxy]]:
Examples
---------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> my_material = cript.Material(name="my material", bigsmiles = "123456")
>>> my_property.component = [my_material]
Expand Down Expand Up @@ -418,7 +418,7 @@ def structure(self) -> str:
Examples
--------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> my_property.structure = "{[][$][C:1][C:1][$],[$][C:2][C:2]([C:2])[$][]}"
Returns
Expand Down Expand Up @@ -457,7 +457,7 @@ def method(self) -> str:
Examples
--------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> my_property.method = "ASTM_D3574_Test_A"
Returns
Expand Down Expand Up @@ -494,7 +494,7 @@ def sample_preparation(self) -> Union[Process, None, UIDProxy]:
Examples
--------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> my_process = cript.Process(name="my process name", type="affinity_pure")
>>> my_property.sample_preparation = my_process
Expand Down Expand Up @@ -532,7 +532,7 @@ def condition(self) -> List[Union[Condition, UIDProxy]]:
Examples
--------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> my_condition = cript.Condition(key="atm", type="max", value=1)
>>> my_property.condition = [my_condition]
Expand Down Expand Up @@ -570,7 +570,7 @@ def data(self) -> List[Union[Data, UIDProxy]]:
Examples
--------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> my_file = cript.File(
... name="my file node name",
... source="https://criptapp.org",
Expand Down Expand Up @@ -615,7 +615,7 @@ def computation(self) -> List[Union[Computation, UIDProxy]]:
Examples
--------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> my_computation = cript.Computation(name="my computation name", type="analysis")
>>> my_property.computation = [my_computation]
Expand Down Expand Up @@ -653,7 +653,7 @@ def citation(self) -> List[Union[Citation, UIDProxy]]:
Examples
--------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> title = (
... "Multi-architecture Monte-Carlo (MC) simulation of soft coarse-grained polymeric materials: "
... "Soft coarse grained Monte-Carlo Acceleration (SOMA)"
Expand Down Expand Up @@ -707,7 +707,7 @@ def notes(self) -> str:
Examples
--------
>>> import cript
>>> my_property = cript.Property(key="air_flow", type="min", value=1.00, unit="gram")
>>> my_property = cript.Property(key="enthalpy", type="min", value=1.00, unit="J")
>>> my_property.notes = "these are my notes"
Returns
Expand Down

0 comments on commit 6b06b8c

Please sign in to comment.