File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ Key differences from site properties:
316316
317317As example, let's add a ` temperature ` property that applies to the entire structure. The steps are:
318318
319- 1 . Edit ` src/aiida_atomistic/data/structure/models.py ` :
319+ (1) Edit ` src/aiida_atomistic/data/structure/models.py ` :
320320
321321``` python
322322class StructureBaseModel (BaseModel ):
@@ -333,7 +333,7 @@ class StructureBaseModel(BaseModel):
333333 )
334334```
335335
336- 2 . Add a setter in ` src/aiida_atomistic/data/structure/setter_mixin.py ` :
336+ (2) Add a setter in ` src/aiida_atomistic/data/structure/setter_mixin.py ` :
337337
338338``` python
339339def set_temperature (self , temperature : float ):
@@ -356,7 +356,7 @@ def set_temperature(self, temperature: float):
356356 self .properties.temperature = float (temperature)
357357```
358358
359- 3 . Add a getter in ` src/aiida_atomistic/data/structure/getter_mixin.py ` :
359+ (3) Add a getter in ` src/aiida_atomistic/data/structure/getter_mixin.py ` :
360360
361361``` python
362362def get_temperature (self ) -> t.Optional[float ]:
@@ -369,7 +369,7 @@ def get_temperature(self) -> t.Optional[float]:
369369 return self .properties.temperature
370370```
371371
372- 4 . Add a remove method in ` src/aiida_atomistic/data/structure/setter_mixin.py ` :
372+ (4) Add a remove method in ` src/aiida_atomistic/data/structure/setter_mixin.py ` :
373373
374374``` python
375375def remove_temperature (self ):
You can’t perform that action at this time.
0 commit comments