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

refactor type handling #17

Merged
merged 16 commits into from
Jun 27, 2024
Merged

refactor type handling #17

merged 16 commits into from
Jun 27, 2024

Conversation

tnagler
Copy link
Contributor

@tnagler tnagler commented Mar 10, 2024

No description provided.

Copy link

codecov bot commented Mar 10, 2024

Codecov Report

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

Project coverage is 96.12%. Comparing base (d8f98d9) to head (18eeb9e).

Current head 18eeb9e differs from pull request most recent head 8eaaa88

Please upload reports for the commit 8eaaa88 to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   94.98%   96.12%   +1.13%     
==========================================
  Files           6        6              
  Lines         678      774      +96     
==========================================
+ Hits          644      744     +100     
+ Misses         34       30       -4     
Files Coverage Δ
include/kde1d/kde1d.hpp 97.81% <97.60%> (+1.51%) ⬆️

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@tvatter
Copy link
Contributor

tvatter commented Mar 13, 2024

Internally, I think that type should be stored as an enum and that there should be two constructors : one for string with standardiye_type and one for the enum. Otherwise, LGTM.

@tnagler
Copy link
Contributor Author

tnagler commented Mar 22, 2024

Internally, we could use an enum class for safety reasons, but having two constructor versions feels a bit unnecessary. I'd vote for enum internally, string externally (also with py interface in mind).

@tvatter
Copy link
Contributor

tvatter commented Mar 23, 2024

Internally, I think that it goes without saying. Externally (i.e., for the constructor), I'd argue for the enum too, as it is what we do in vinecopulib for the families. Now that you mention it, it is clearly clunky (and borderline nonpythonic) in pyvinecopulib, but for the C++ code, I believe that it's the right thing to do.

@tnagler tnagler marked this pull request as ready for review March 23, 2024 11:48
@tnagler tnagler changed the base branch from zero-inflation to main March 23, 2024 11:51
@tvatter tvatter merged commit e9301da into main Jun 27, 2024
6 checks passed
@tvatter tvatter deleted the refactor-nlevels branch June 27, 2024 13:41
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