Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
smroid committed Feb 3, 2025
1 parent 34c79dc commit 518fe79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tetra3/benchmark_synthetic_fovs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def benchmark_synthetic_fovs(width, height, fov_deg, num_fovs,
scale_factor = width / 2 / np.tan(np.deg2rad(fov_deg) / 2)

# Histogram of successful solve times.
NUM_HISTO_BINS = 200
NUM_HISTO_BINS = 1000
MAX_SOLVE_TIME_MS = 1000
solve_time_histo = [0] * NUM_HISTO_BINS
bin_width = MAX_SOLVE_TIME_MS / NUM_HISTO_BINS
Expand Down Expand Up @@ -111,7 +111,8 @@ def benchmark_synthetic_fovs(width, height, fov_deg, num_fovs,

solution = t3.solve_from_centroids(centroids, size=(height, width), distortion=0,
fov_estimate=fov_deg, fov_max_error=fov_deg/10.0)
if iter_count % 1000 == 0:
# Print progress 10 times.
if iter_count % (num_fovs / 5) == 0:
print(f'iter {iter_count}; solution for ra/dec {np.rad2deg(ra):.4f}/{np.rad2deg(dec):.4f}: {solution}')

if solution['RA'] is None:
Expand Down

0 comments on commit 518fe79

Please sign in to comment.