forked from CURENT/andes
/
info.py
27 lines (20 loc) 路 796 Bytes
/
info.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
Module for information container models.
These models are not used in DAE calculations.
"""
from andes.core.model import Model, ModelData
from andes.core.param import DataParam
class Summary(ModelData, Model):
"""
Class for storing system summary.
Can be used for random information or notes.
"""
def __init__(self, system, config):
ModelData.__init__(self, three_params=False)
self.field = DataParam(info='field name')
self.comment = DataParam(info='information, comment, or anything')
self.comment2 = DataParam(info='comment field 2')
self.comment3 = DataParam(info='comment field 3')
self.comment4 = DataParam(info='comment field 4')
Model.__init__(self, system, config)
self.group = 'Information'