From 30fe3ed370a687d28ded99f53c1d368d92695ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Speglich?= Date: Thu, 28 Apr 2022 14:09:21 +0100 Subject: [PATCH] ckp: remove n_checkpoint = n_timestep dependencie from H-Revolve --- pyrevolve/schedulers/hrevolve.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pyrevolve/schedulers/hrevolve.py b/pyrevolve/schedulers/hrevolve.py index 5106647..a6dc99c 100644 --- a/pyrevolve/schedulers/hrevolve.py +++ b/pyrevolve/schedulers/hrevolve.py @@ -630,12 +630,6 @@ class HRevolve(Scheduler): def __init__(self, n_checkpoints, n_timesteps, architecture=None, uf=1, ub=1, up=1): super().__init__(n_checkpoints, n_timesteps) - if n_checkpoints != n_timesteps: - raise ValueError( - "HRevolveError: the number of checkpoints \ - must be equal to the number of timesteps" - ) - self.hsequence = None if architecture is None: self.architecture = Architecture() # loads default arch