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

raw.orca cleanup #314

Merged
merged 11 commits into from
Jul 21, 2022
Merged

raw.orca cleanup #314

merged 11 commits into from
Jul 21, 2022

Conversation

gipert
Copy link
Member

@gipert gipert commented Jul 11, 2022

As part of the refactor, we should make sure that only tested, standard-compliant code is part of the codebase. Since I don't think decoders for data takers (handled by ORCA) other than FlashCam will be refactored soon, I'm proposing to:

  • remove orca_digitizers.py and orca_pollers.py
  • remove ORFlashCamListenerStatusDecoder or raise a NotImplementedError like now.

These not-yet-refactored pieces of code should be stored elsewhere, in the meanwhile.

@gipert gipert added the raw Decoding DAQ files label Jul 11, 2022
@gipert gipert requested a review from jasondet July 11, 2022 13:24
@codecov-commenter
Copy link

codecov-commenter commented Jul 11, 2022

Codecov Report

Merging #314 (5806ee1) into main (d8a130e) will increase coverage by 3.27%.
The diff coverage is 82.16%.

@@            Coverage Diff             @@
##             main     #314      +/-   ##
==========================================
+ Coverage   29.84%   33.11%   +3.27%     
==========================================
  Files          75       73       -2     
  Lines        6494     6184     -310     
==========================================
+ Hits         1938     2048     +110     
+ Misses       4556     4136     -420     
Impacted Files Coverage Δ
src/pygama/raw/build_raw.py 81.53% <ø> (ø)
src/pygama/lgdo/lh5_store.py 76.30% <65.85%> (+2.72%) ⬆️
src/pygama/raw/data_streamer.py 77.89% <66.66%> (ø)
src/pygama/raw/orca/orca_streamer.py 87.59% <73.07%> (+2.80%) ⬆️
src/pygama/raw/orca/orca_header_decoder.py 76.47% <73.68%> (+3.39%) ⬆️
src/pygama/raw/orca/orca_packet.py 44.44% <75.00%> (+8.96%) ⬆️
src/pygama/lgdo/scalar.py 83.87% <76.19%> (+5.29%) ⬆️
src/pygama/raw/orca/orca_header.py 67.07% <81.25%> (+1.25%) ⬆️
src/pygama/lgdo/vectorofvectors.py 89.18% <82.14%> (+4.46%) ⬆️
src/pygama/lgdo/waveform_table.py 81.00% <84.61%> (-0.92%) ⬇️
... and 19 more

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 87e11e5...5806ee1. Read the comment docs.

Do not use mutable data structures for argument defaults. They are
created during function definition time. All calls to the function reuse
this one instance of that data structure, persisting changes between
them.
@jasondet
Copy link
Collaborator

this should be on main not refactor, right?

@jasondet jasondet changed the base branch from refactor to main July 21, 2022 00:18
@jasondet jasondet merged commit 8673620 into legend-exp:main Jul 21, 2022
@gipert gipert deleted the raw branch August 10, 2022 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
raw Decoding DAQ files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants