Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
joernweissenborn committed Dec 2, 2021
1 parent e692c4d commit 42042cf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions glotaran/builtin/megacomplexes/decay/decay_megacomplex.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ def get_compartments(self, dataset_model: DatasetModel) -> list[str]:
]

def get_initial_concentration(self, dataset_model: DatasetModel) -> np.ndarray:
if dataset_model.initial_concentration is None:
raise ModelError(
f'No initial concentration specified in dataset "{dataset_model.label}"'
)
compartments = self.get_compartments(dataset_model)
idx = [
compartment in compartments
Expand Down

0 comments on commit 42042cf

Please sign in to comment.