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

Docstring, unit tests for nectarchain tools, component and containers #114

Merged
merged 6 commits into from
Mar 26, 2024

Conversation

guillaumegrolleron
Copy link
Contributor

@guillaumegrolleron guillaumegrolleron commented Mar 8, 2024

In this PR, unit tests and documentation is implemented for the containers module of nectarchain.

Modifications :

-bugfix : dirac import does not break the logger anymore.
-bugfix : access to numpy.ndarray field within containers
-improvement of event loop : speed up by a factor 2 + reduction of the ram needed by a factor 5 at least.

Next :
-Write unit tests and doc for the tools and components modules

Copy link

codecov bot commented Mar 8, 2024

Codecov Report

Attention: Patch coverage is 62.96296% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 29.99%. Comparing base (70ad9e8) to head (fa3239b).

Files Patch % Lines
...c/nectarchain/makers/component/chargesComponent.py 0.00% 6 Missing ⚠️
...nectarchain/makers/component/waveformsComponent.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
+ Coverage   28.54%   29.99%   +1.44%     
==========================================
  Files          62       62              
  Lines        4102     4101       -1     
==========================================
+ Hits         1171     1230      +59     
+ Misses       2931     2871      -60     

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

Copy link
Collaborator

@jlenain jlenain left a comment

Choose a reason for hiding this comment

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

Very nice, @guillaumegrolleron , thanks a lot !
The coverage nicely increased.
Let me know when this PR is ready for review.

@guillaumegrolleron guillaumegrolleron marked this pull request as ready for review March 26, 2024 17:43
@jlenain jlenain self-requested a review March 26, 2024 22:17
Copy link
Collaborator

@jlenain jlenain left a comment

Choose a reason for hiding this comment

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

Many thanks, @guillaumegrolleron . As already stated, I locally tested your branch, the coverage increased substantially and unit tests run smoothly locally.

@jlenain jlenain merged commit 6cb7373 into cta-observatory:main Mar 26, 2024
10 checks 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