Skip to content

Commit

Permalink
fix: remove typos of test/train param set
Browse files Browse the repository at this point in the history
  • Loading branch information
carrascomj committed Oct 13, 2023
1 parent 231a875 commit f98aa77
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions maud/data_model/parameter_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ def _get_experiments(self, train: bool) -> list[str]:
]

def _get_drain(self, train: bool) -> mp.Drain:
"""Add the drain_train field."""
drain_ids = [
d.id
for d in self.kinetic_model.reactions
Expand Down Expand Up @@ -281,12 +280,12 @@ def _get_conc_pme(self, train: bool) -> mp.ConcPme:
@computed_field
def conc_pme_train(self) -> mp.ConcPme:
"""Add the conc_pme_train field."""
return self._get_conc_pme(True)
return self._get_conc_pme(train=True)

@computed_field
def conc_pme_test(self) -> mp.ConcPme:
"""Add the conc_pme_test field."""
return self._get_conc_pme(False)
return self._get_conc_pme(train=False)

def _get_psi(self, train: bool) -> mp.Psi:
"""Add the psi_train field."""
Expand All @@ -311,4 +310,4 @@ def psi_train(self) -> mp.Psi:
@computed_field
def psi_test(self) -> mp.Psi:
"""Add the psi_test field."""
return self._get_psi(train=True).test()
return self._get_psi(train=False)

0 comments on commit f98aa77

Please sign in to comment.