Skip to content

Commit

Permalink
Allow Genome Locus Set cover check for position 0 again
Browse files Browse the repository at this point in the history
  • Loading branch information
lczech committed Mar 13, 2024
1 parent 5aeac18 commit 2b3147b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/genesis/population/genome_locus_set.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ class GenomeLocusSet
"GenomeLocusSet::is_covered( Bitvector const&, size_t ) called with empty Bitvector"
);
}
if( position == 0 ) {
throw std::invalid_argument(
"GenomeLocusSet::is_covered( Bitvector const&, size_t ) called with position==0"
);
}
// if( position == 0 ) {
// throw std::invalid_argument(
// "GenomeLocusSet::is_covered( Bitvector const&, size_t ) called with position==0"
// );
// }

// If the chromosome has the 0th bit set, the whole chromosome is covered.
if( bitvector.get( 0 ) ) {
Expand Down

0 comments on commit 2b3147b

Please sign in to comment.