Skip to content

Update observing methods#1175

Merged
wtgee merged 4 commits intopanoptes:developfrom
wtgee:new-observe-methods
Aug 20, 2022
Merged

Update observing methods#1175
wtgee merged 4 commits intopanoptes:developfrom
wtgee:new-observe-methods

Conversation

@wtgee
Copy link
Member

@wtgee wtgee commented Aug 20, 2022

  • Changes observatory.observe to observatory.take_observation to have more descriptive name and not interfere with potential state action names.
  • take_observation will now remove cameras if they are stuck and try to continue observing until no cameras are left.
  • Created high-level pocs.observe_target, which loops over the exptimes in the observation and sets up processing threads when done with each exposure. This replaces what was in the observing state and moves it to a pocs method. This allows the mount to stay on a target for the length of the observation without moving between states during each exposures, which helps cadence.
  • Relies on python 3.10 from Create scheduler updates #1174

Comes from #1167

* Changes `observatory.observe` to `observatory.take_observation` to have more descriptive name and not interfere with potential state action names.
* `take_observation` will now remove cameras if they are stuck and try to continue observing until no cameras are left.
* Created high-level `pocs.observe_target`, which loops over the exptimes in the observation and sets up processing threads when done with each exposure. This replaces what was in the `observing` state and moves it to a `pocs` method. This allows the mount to stay on a target for the length of the observation without moving between states during each exposures, which helps cadence.
@codecov
Copy link

codecov bot commented Aug 20, 2022

Codecov Report

Merging #1175 (34a7aed) into develop (4908119) will decrease coverage by 8.28%.
The diff coverage is 60.15%.

@@             Coverage Diff             @@
##           develop    #1175      +/-   ##
===========================================
- Coverage    83.08%   74.80%   -8.29%     
===========================================
  Files           86       91       +5     
  Lines         7425     7846     +421     
  Branches       635      877     +242     
===========================================
- Hits          6169     5869     -300     
- Misses        1083     1834     +751     
+ Partials       173      143      -30     
Impacted Files Coverage Δ
src/panoptes/pocs/camera/gphoto/remote.py 0.00% <0.00%> (-21.57%) ⬇️
src/panoptes/pocs/sensor/power.py 40.23% <0.00%> (-1.74%) ⬇️
...rc/panoptes/pocs/state/states/default/analyzing.py 5.55% <0.00%> (-54.45%) ⬇️
...rc/panoptes/pocs/state/states/default/observing.py 13.33% <0.00%> (-62.86%) ⬇️
src/panoptes/pocs/state/states/default/tracking.py 6.66% <0.00%> (-76.67%) ⬇️
src/panoptes/pocs/utils/cli/main.py 0.00% <0.00%> (-70.00%) ⬇️
src/panoptes/pocs/utils/database.py 0.00% <0.00%> (ø)
src/panoptes/pocs/utils/logger.py 100.00% <ø> (ø)
tests/test_ioptron.py 66.66% <0.00%> (+0.70%) ⬆️
src/panoptes/pocs/utils/cli/image.py 33.33% <33.33%> (ø)
... and 70 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@wtgee wtgee merged commit 69daecb into panoptes:develop Aug 20, 2022
@wtgee wtgee deleted the new-observe-methods branch August 20, 2022 01:58
wtgee added a commit that referenced this pull request Apr 9, 2025
* Update observing methods

* Changes `observatory.observe` to `observatory.take_observation` to have more descriptive name and not interfere with potential state action names.
* `take_observation` will now remove cameras if they are stuck and try to continue observing until no cameras are left.
* Created high-level `pocs.observe_target`, which loops over the exptimes in the observation and sets up processing threads when done with each exposure. This replaces what was in the `observing` state and moves it to a `pocs` method. This allows the mount to stay on a target for the length of the observation without moving between states during each exposures, which helps cadence.

* Remove python 3.10 specific syntax.
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.

1 participant