Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joeperdefloep committed Mar 25, 2021
1 parent 38d4131 commit 2b826dc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions xsimlab/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,8 @@ def clone(self):
Returns
-------
cloned : Model
New Model instance with the same processes.
New Model instance with the same processes, custom dependencies and
checking behaviour.
"""
processes_cls = {k: type(obj) for k, obj in self._processes.items()}
Expand All @@ -1229,7 +1230,8 @@ def update_processes(
Returns
-------
updated : Model
New Model instance with updated processes.
New Model instance with updated processes, custom dependencies and
checking behaviour.
"""
processes_cls = {k: type(obj) for k, obj in self._processes.items()}
Expand All @@ -1248,8 +1250,9 @@ def update_processes(

return type(self)(processes_cls, new_c_deps, strict_order_check)

def drop_processes(self, keys, strict_order_check=None):
"""Drop processe(s) from this model.
def drop_processes(self, keys):
"""Drop processe(s) from this model. Also establishes new custom
dependencies if they would be lost.
Parameters
----------
Expand Down

0 comments on commit 2b826dc

Please sign in to comment.