Skip to content

Conversation

@ryanthecoder
Copy link
Contributor

Overview

Add a new version of evaporation calculation to the gravimetric script.

@ryanthecoder ryanthecoder requested review from a team as code owners December 16, 2025 16:56
@ryanthecoder ryanthecoder requested review from jerader and removed request for a team December 16, 2025 16:56
@codecov
Copy link

codecov bot commented Dec 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.78%. Comparing base (652c8fd) to head (895501f).
⚠️ Report is 6 commits behind head on edge.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #20392      +/-   ##
==========================================
+ Coverage   56.74%   56.78%   +0.04%     
==========================================
  Files        3649     3657       +8     
  Lines      303774   304603     +829     
  Branches    42724    43035     +311     
==========================================
+ Hits       172383   172978     +595     
- Misses     131177   131411     +234     
  Partials      214      214              
Flag Coverage Δ
step-generation 5.64% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 32 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

inline comments. more broadly it seems like touch_blank=True and touch_blank=False don't actually do anything different, can we get rid of the csv changes?

fixture_settings.pipette._get_last_location_by_api_version().point.z, # type: ignore [union-attr]
)
if fixture_settings.touch_blank:
blank_move_to_height = liquid_height - fixture_settings.submerge_depth
Copy link
Member

Choose a reason for hiding this comment

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

these are the same, right? can get rid of the if?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dang app copies of protocols being different then the original files strikes again

except Exception as e:
print_error(f"error during run {e}")
print_error(f"Captured traceback:\n{traceback.format_exc()}")
error = e
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
error = e
raise

?

Copy link
Contributor Author

@ryanthecoder ryanthecoder Dec 17, 2025

Choose a reason for hiding this comment

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

Because we need to hit the finally block before raising to properly close out the output file and shut down the scale

Copy link
Member

Choose a reason for hiding this comment

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

the finally will still run in that case:

opentrons [ add-sentry-electron-apps](MERGING) [ ][🐍 ]
❯ cat test.py
try:
    raise Exception("oh no")
except Exception:
    print("caught an exception!")
    raise
finally:
    print("finally")

❯ python test.py
caught an exception!
finally
Traceback (most recent call last):
  File "/Users/sethfoster/dev/opentrons/test.py", line 2, in <module>
    raise Exception("oh no")
Exception: oh no

Copy link
Member

Choose a reason for hiding this comment

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

the finally runs before the exception gets re-dispatched

Copy link
Member

@sfoster1 sfoster1 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 once we fix that reraise thing

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.

3 participants