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

Weather sensor & plot updates #881

Closed
wants to merge 6 commits into from

Conversation

wtgee
Copy link
Member

@wtgee wtgee commented Aug 18, 2019

Sensor:

  • Ability to specify db_type with a default of file.
  • Remove unused get_reading.
  • Messaging ports come from config instead of hard-coded.

Plot script:

  • Change to matplotlib OO interface.
  • Ensure plots are properly closed to free memory in long-running usage.
  • Removed plotly items.
  • Use only pandas tables, not astropy tables (makes working with dates easier).
  • Filter rows to only include relevant dates (speeds things up).
  • Use logger rather than print statements.
  • Update matplotlib date converters.
  • Create location for plotting using create_location_from_config.
  • Cleaned up date formatting for log output.

Pulled from #859

* Ability to specify `db_type` with a default of `file`.
* Remove unused `get_reading`.
* Messaging ports come from config instead of hard-coded.
* Easier date parsing on plotting.
* Plotting skips invalid entries.
* Masked entries are filled with zeros (!)
@wtgee wtgee requested a review from jamessynge August 18, 2019 05:50
@codecov
Copy link

codecov bot commented Aug 18, 2019

Codecov Report

Merging #881 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #881   +/-   ##
========================================
  Coverage    81.38%   81.38%           
========================================
  Files           69       69           
  Lines         5646     5646           
  Branches       781      781           
========================================
  Hits          4595     4595           
  Misses         850      850           
  Partials       201      201

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d255d57...eeee8fe. Read the comment docs.

@wtgee wtgee added this to the v0.7.0 milestone Aug 18, 2019
@wtgee wtgee added the v0.7.0 Milestone Work toward the v0.7.0 milestone. label Aug 18, 2019
wtgee added 5 commits August 19, 2019 13:56
* Use only pandas tables, not astropy tables (makes working with dates easier).
* Filter rows to only include relevant dates (speeds things up).
* Use logger rather than print statements.
* Update matplotlib date converters.
* Create location for plotting using `create_location_from_config`.
* Cleaned up date formatting for log output.
@wtgee
Copy link
Member Author

wtgee commented Sep 17, 2019

Closing this PR in favor of the separate repo at: https://github.com/panoptes/aag-weather

Future PR should remove all weather info from POCS repository.

@wtgee wtgee closed this Sep 17, 2019
@wtgee wtgee deleted the weather-sensor-fixes branch September 17, 2019 03:51
@wtgee wtgee mentioned this pull request Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v0.7.0 Milestone Work toward the v0.7.0 milestone.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant