Skip to content

Commit

Permalink
make preprocess non-abstract empty again
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrizzo committed Mar 23, 2024
1 parent 10ecef4 commit 4458af5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/catsim/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from . import cat, irt


class Simulable(ABC):
class Simulable:
"""Base class representing one of the Simulator components that will receive a reference back to it."""

def __init__(self) -> None:
Expand Down Expand Up @@ -42,7 +42,6 @@ def simulator(self, x: "Simulator") -> None:
self._simulator = x
self.preprocess()

@abstractmethod
def preprocess(self) -> None:
"""Override this method to initialize any values the `Simulable` might use for the duration of the simulation.
Expand Down Expand Up @@ -526,7 +525,8 @@ def simulate(

if verbose:
print(
f"Starting simulation: {self._initializer} {self._selector} {self._estimator} {self._stopper} {self._items.shape[0]} items"
f"Starting simulation: {self._initializer} {self._selector} "
f"{self._estimator} {self._stopper} {self._items.shape[0]} items"
)
pbar = tqdm.tqdm(total=len(self.examinees))

Expand Down

0 comments on commit 4458af5

Please sign in to comment.