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

[FEATURE] Add data_store::validate #230

Merged
merged 3 commits into from
Sep 12, 2024
Merged

Conversation

eseiler
Copy link
Member

@eseiler eseiler commented Sep 10, 2024

Part 1 of #227

@seqan-actions seqan-actions added lint [INTERNAL] used for linting and removed lint [INTERNAL] used for linting labels Sep 10, 2024
@seqan-actions
Copy link
Member

Documentation preview available at https://docs.seqan.de/preview/seqan/hibf/230

@eseiler eseiler force-pushed the infra/check_datastore branch from 4dd58ff to 4522c28 Compare September 10, 2024 23:17
@seqan-actions seqan-actions added lint [INTERNAL] used for linting and removed lint [INTERNAL] used for linting labels Sep 10, 2024
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.63%. Comparing base (485b22b) to head (273f7f4).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #230   +/-   ##
=======================================
  Coverage   99.63%   99.63%           
=======================================
  Files          50       51    +1     
  Lines        1915     1930   +15     
  Branches        5        5           
=======================================
+ Hits         1908     1923   +15     
  Misses          7        7           

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

@eseiler eseiler requested a review from smehringer September 10, 2024 23:32
Copy link
Member

@smehringer smehringer left a comment

Choose a reason for hiding this comment

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

tiny add ons

src/layout/data_store.cpp Show resolved Hide resolved
@@ -40,7 +39,8 @@ size_t hierarchical_binning::execute()

if (!config.disable_estimate_union && !config.disable_rearrangement)
{
assert(data->sketches != nullptr);
if (data->sketches == nullptr)
throw std::invalid_argument{"[HIBF ERROR] data_store::sketches must not be nullptr."};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
throw std::invalid_argument{"[HIBF ERROR] data_store::sketches must not be nullptr."};
throw std::invalid_argument{"[HIBF ERROR] data_store::sketches must not be nullptr is union estimation or rearrangement is enabled."};

@eseiler eseiler force-pushed the infra/check_datastore branch from 4522c28 to 8d6defe Compare September 12, 2024 11:31
@seqan-actions seqan-actions added lint [INTERNAL] used for linting and removed lint [INTERNAL] used for linting labels Sep 12, 2024
@eseiler eseiler force-pushed the infra/check_datastore branch from 8d6defe to 273f7f4 Compare September 12, 2024 11:34
@seqan-actions seqan-actions added lint [INTERNAL] used for linting and removed lint [INTERNAL] used for linting labels Sep 12, 2024
@eseiler eseiler requested a review from smehringer September 12, 2024 11:57
@smehringer
Copy link
Member

@eseiler Do we want to keep the commits? Seems sensible but you have the last call.

@eseiler eseiler merged commit 169cafe into seqan:main Sep 12, 2024
37 checks passed
@eseiler eseiler deleted the infra/check_datastore branch September 12, 2024 14:33
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.

3 participants