Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sofast Calibrations use Logtools #39

Merged
merged 21 commits into from
Mar 21, 2024

Conversation

braden6521
Copy link
Collaborator

@braden6521 braden6521 commented Mar 20, 2024

  • Migrated all print statements in Deflectometry/Sofast calibration/processing routines to use lot_tools.
  • Where appropriate, some reformatting to make code more readable.

@braden6521 braden6521 force-pushed the sofast_cal_logtools branch from 41e993d to 3a27211 Compare March 20, 2024 22:13
@braden6521 braden6521 changed the title Sofast cal logtools Sofast Calibrations to use Logtools Mar 20, 2024
@braden6521 braden6521 changed the title Sofast Calibrations to use Logtools Sofast Calibrations use Logtools Mar 20, 2024
@braden6521 braden6521 self-assigned this Mar 21, 2024
@braden6521 braden6521 requested a review from bbean23 March 21, 2024 04:38
@braden6521 braden6521 marked this pull request as ready for review March 21, 2024 04:38
Copy link
Collaborator

@bbean23 bbean23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for committing these non-functional changes all at once! It really makes it easier to understand when functional changes aren't also mixed in.

ft.create_directories_if_necessary(save_path)

# Set up logger
lt.logger(join(save_path, 'log.txt'), lt.log.INFO)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for moving this to here!

@@ -190,19 +195,19 @@ def bundle_adjustment_sparsity(
"""
m = camera_indices.size * 2 # num observed points (x and y)
n = n_cameras * 6 + n_points * 3 # Nvars
A = lil_matrix((m, n), dtype=int) # Num xy points x num vars
jac_sparsity = lil_matrix((m, n), dtype=int) # Num xy points x num vars
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chef's kiss of useful variable names 😚🤌

@braden6521 braden6521 merged commit 53d965e into sandialabs:develop Mar 21, 2024
0 of 3 checks passed
@braden6521 braden6521 deleted the sofast_cal_logtools branch April 15, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants