Skip to content

Commit d995df5

Browse files
committed
fix: mark RandomController as not adaptive
1 parent 8a7f00e commit d995df5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pycaputo/controller.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,10 @@ class RandomController(Controller):
966966
rng: np.random.Generator
967967
"""A random number generator for the time steps."""
968968

969+
@property
970+
def is_adaptive(self) -> bool:
971+
return False
972+
969973
@cached_property
970974
def times(self) -> Array:
971975
assert self.tfinal is not None

0 commit comments

Comments
 (0)