Skip to content

Commit

Permalink
Consistent n -> num
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceyron committed Mar 5, 2024
1 parent 3c99363 commit ec4b502
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exponax/_repeated_stepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class RepeatedStepper(eqx.Module):
"""

stepper: BaseStepper
n_sub_steps: int
num_sub_steps: int

def step(
self,
Expand All @@ -33,7 +33,7 @@ def step(
Step the PDE forward in time by self.n_sub_steps time steps given the
current state `u`.
"""
return repeat(self.stepper.step, self.n_sub_steps)(u)
return repeat(self.stepper.step, self.num_sub_steps)(u)

def step_fourier(
self,
Expand All @@ -43,7 +43,7 @@ def step_fourier(
Step the PDE forward in time by self.n_sub_steps time steps given the
current state `u_hat` in real-valued Fourier space.
"""
return repeat(self.stepper.step_fourier, self.n_sub_steps)(u_hat)
return repeat(self.stepper.step_fourier, self.num_sub_steps)(u_hat)

def __call__(
self,
Expand All @@ -53,4 +53,4 @@ def __call__(
Step the PDE forward in time by self.n_sub_steps time steps given the
current state `u`.
"""
return repeat(self.stepper, self.n_sub_steps)(u)
return repeat(self.stepper, self.num_sub_steps)(u)

0 comments on commit ec4b502

Please sign in to comment.