Skip to content

Commit

Permalink
Automatically generated __init__ had different order of params
Browse files Browse the repository at this point in the history
  • Loading branch information
angelcerveraroldan committed Sep 6, 2024
1 parent b686bdc commit 249d353
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions py-rgrow/rgrow/sdc/anneal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 249d353

Please sign in to comment.