Skip to content

Commit 337bc35

Browse files
committed
refactor: remove n_checkpoint = n_timestep dependencie from H-Revolve
1 parent 5f58c84 commit 337bc35

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

pyrevolve/pyrevolve.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,6 @@ def __init__(
428428
profiler=profiler,
429429
)
430430

431-
# The number of checkpoints
432-
# must be equal to the number of timesteps
433-
self.n_checkpoints = self.n_timesteps
434-
435431
self.uf = uf # forward cost (default=1)
436432
self.ub = ub # backward cost (default=1)
437433
self.up = up # turn cost (default=1)

pyrevolve/schedulers/hrevolve.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -630,12 +630,6 @@ class HRevolve(Scheduler):
630630
def __init__(self, n_checkpoints, n_timesteps, architecture=None, uf=1, ub=1, up=1):
631631
super().__init__(n_checkpoints, n_timesteps)
632632

633-
if n_checkpoints != n_timesteps:
634-
raise ValueError(
635-
"HRevolveError: the number of checkpoints \
636-
must be equal to the number of timesteps"
637-
)
638-
639633
self.hsequence = None
640634
if architecture is None:
641635
self.architecture = Architecture() # loads default arch

0 commit comments

Comments
 (0)