Skip to content

Commit 3b1f147

Browse files
authored
Merge branch 'aiidateam:develop' into develop
2 parents eb7b65c + fc8cab6 commit 3b1f147

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/dev_guides/dev_adding_properties.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ Key differences from site properties:
316316

317317
As 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
322322
class 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
339339
def 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
362362
def 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
375375
def remove_temperature(self):

0 commit comments

Comments
 (0)