...
def delete(self, ids_name, occurrence=0):
IDS superclass
IDSBase
- Parent class for all classes representing particular IDSes.
...
Warning | ||
---|---|---|
| ||
Backward compatibility, understood as possibility of using 'old' and 'new' approach at the same time is :
Compatibility can be also ensured by introducing new names of methods - |
...
Code Block |
---|
import imas ids_wall = imas.wall.wall() |
TO DO / Open points
IDS superclass
...
IDS names
Code Block |
---|
ids = db_entry.get('pf_active') |
...
It can be implemented using enum or class attribute
Enum
class IDSName(enum):
EQUILIBRIUM = 'equilibrium'
...
Warning |
---|
It is not enough to call |
Given IDS class attribute
e.g. Wall.__name__
Code Block |
---|
ids = db_entry.get(Wall.__name__) |
...