fix: now doesn't double randomise frequency
Some checks failed
gitea-physics/deepdog/pipeline/head There was a failure building this commit

This commit is contained in:
Deepak Mallubhotla 2022-04-30 17:40:55 -05:00
parent 6e29f7a702
commit 23b202beb8
Signed by: deepak
GPG Key ID: BEBAEBF28083E022

View File

@ -171,10 +171,9 @@ class BayesRunSimulPairs:
for run in range(1, self.run_count + 1): for run in range(1, self.run_count + 1):
rng = numpy.random.default_rng() rng = numpy.random.default_rng()
frequency = rng.uniform(1, self.max_frequency)
# Generate the actual dipoles # Generate the actual dipoles
actual_dipoles = self.actual_model.get_dipoles(frequency) actual_dipoles = self.actual_model.get_dipoles(self.max_frequency)
dots = actual_dipoles.get_percent_range_dot_measurements( dots = actual_dipoles.get_percent_range_dot_measurements(
self.dot_inputs, self.low_error, self.high_error self.dot_inputs, self.low_error, self.high_error