This runs the same set of doublet simulations using different chunk sizes and prints the results to the terminal to show find which chunk size is optimal.
It runs each chunk size 3 times and takes the average of their times to find the time taken for that chunk size.
The chunks which are tested go from 1 -> n_simulations with steps of chunk_step_size.
Parameters
----------
@@ -35,7 +35,7 @@ def assess_optimal_chunk_size(n_simulations: int = 1000, chunk_step_size: int =
coords={"sample":np.arange(n_simulations)}
)
n_attempts=2# do the same operation n_attempts and take an average of their times.
n_attempts=3# do the same operation n_attempts and take an average of their times.