Skip to content

Conversation

AdvancedImagingUTSW
Copy link
Collaborator

Ended up being more of an exploration on type hinting to make debugging in an IDE easier. Will circle back to #1008

Interesting. Can specify a base class as the return object to provide access to methods and documentation...
Only significant change is in RemoteFocusEquipmentSolutions:
num_waiting = self.serial.in_waiting

Was inWaiting()

Need to confirm that this is not a problem...
@AdvancedImagingUTSW AdvancedImagingUTSW linked an issue Oct 8, 2024 that may be closed by this pull request
Learning the hardway...
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

Attention: Patch coverage is 74.44934% with 58 lines in your changes missing coverage. Please review.

Project coverage is 53.87%. Comparing base (2f416f4) to head (6589ca7).

Files with missing lines Patch % Lines
src/navigate/model/devices/daq/ni.py 0.00% 16 Missing ⚠️
src/navigate/model/device_startup_functions.py 70.83% 14 Missing ⚠️
src/navigate/model/devices/camera/hamamatsu.py 0.00% 6 Missing ⚠️
src/navigate/model/devices/stages/asi.py 25.00% 6 Missing ⚠️
...navigate/model/devices/stages/asi_MSTwoThousand.py 0.00% 5 Missing ⚠️
src/navigate/model/model.py 50.00% 4 Missing ⚠️
.../model/devices/remote_focus/equipment_solutions.py 0.00% 3 Missing ⚠️
src/navigate/model/devices/camera/photometrics.py 0.00% 2 Missing ⚠️
src/navigate/model/devices/remote_focus/ni.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1011      +/-   ##
===========================================
+ Coverage    53.77%   53.87%   +0.09%     
===========================================
  Files          178      178              
  Lines        20080    20168      +88     
===========================================
+ Hits         10799    10866      +67     
- Misses        9281     9302      +21     
Flag Coverage Δ
unittests 53.87% <74.44%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

"""
for i in range(100):
num_waiting = self.serial.inWaiting()
num_waiting = self.serial.in_waiting
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the most important thing to test...

@AdvancedImagingUTSW
Copy link
Collaborator Author

Thanks @JinlongL for testing the PR

@JinlongL
Copy link
Contributor

JinlongL commented Oct 8, 2024 via email

@AdvancedImagingUTSW AdvancedImagingUTSW merged commit f80592e into develop Oct 8, 2024
1 check passed
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