From 249d353cdd9bbf73f0b448fccf33d28f39679eab Mon Sep 17 00:00:00 2001 From: Angel Cervera Roldan <48255007+angelcerveraroldan@users.noreply.github.com> Date: Fri, 6 Sep 2024 11:08:38 +0100 Subject: [PATCH] Automatically generated __init__ had different order of params --- py-rgrow/rgrow/sdc/anneal.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/py-rgrow/rgrow/sdc/anneal.py b/py-rgrow/rgrow/sdc/anneal.py index f22cf63..7a5672b 100644 --- a/py-rgrow/rgrow/sdc/anneal.py +++ b/py-rgrow/rgrow/sdc/anneal.py @@ -79,18 +79,22 @@ def gen_arrays(self): number_of_steps = int(self.delta_time * steps_per_sec) delta_temperatures = np.linspace( - self.adjusted_initial_tmp, self.adjusted_final_tmp, int(number_of_steps + 1) + self.adjusted_initial_tmp, self.adjusted_final_tmp, int( + number_of_steps + 1) ) initial_temp = np.repeat( - self.adjusted_initial_tmp, int(self.initial_hold * steps_per_sec) - 1 + self.adjusted_initial_tmp, int( + self.initial_hold * steps_per_sec) - 1 ) ending_temp = np.repeat( self.adjusted_final_tmp, int(self.final_hold * steps_per_sec) ) - temperatures = np.concatenate([initial_temp, delta_temperatures, ending_temp]) + temperatures = np.concatenate( + [initial_temp, delta_temperatures, ending_temp]) total_time = self.initial_hold + self.final_hold + self.delta_time - times = np.arange(self.timestep, total_time + self.timestep, self.timestep) + times = np.arange(self.timestep, total_time + + self.timestep, self.timestep) return times, temperatures