Skip to content

Commit 51439d2

Browse files
committed
Removal of required transitions
Removed advance_state, reset, save, and help from required methods for components.
1 parent 371ecc5 commit 51439d2

File tree

2 files changed

+2
-36
lines changed

2 files changed

+2
-36
lines changed

ngcsimlib/component.py

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -75,38 +75,4 @@ def validate(self):
7575
msg += f"\nCompartment Description:\t{_help}"
7676
warn(msg)
7777
valid = False
78-
return valid
79-
80-
##Abstract Methods
81-
@abstractmethod
82-
def advance_state(self, **kwargs):
83-
"""
84-
An abstract method to advance the state of the component to the next one
85-
(a component transitions from its current state at time t to a new one
86-
at time t + dt)
87-
"""
88-
pass
89-
90-
@abstractmethod
91-
def reset(self, **kwargs):
92-
"""
93-
An abstract method that should be implemented to models can be returned
94-
to their original state.
95-
"""
96-
pass
97-
98-
@abstractmethod
99-
def save(self, directory, **kwargs):
100-
"""
101-
An abstract method to save component specific state to the provided
102-
directory
103-
104-
Args:
105-
directory: the directory to save the state to
106-
"""
107-
pass
108-
109-
@classmethod
110-
@abstractmethod
111-
def help(cls):
112-
pass
78+
return valid

ngcsimlib/metaComponent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ def _wrapped_help(*args):
115115

116116
x.help = _wrapped_help
117117

118-
x.guides = Guides(x)
118+
x.guides = Guides(x)
119119

120120
return x

0 commit comments

Comments
 (0)