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

[MISC] Update writable_alphabet concept #2337

Merged
merged 3 commits into from
Feb 8, 2021

Conversation

MitraDarja
Copy link
Contributor

CHANGELOG.md Outdated Show resolved Hide resolved
@MitraDarja
Copy link
Contributor Author

MitraDarja commented Feb 1, 2021

@marehr

Sorry, but I can not figure out the error myself.
I have tried deleting requires SEQAN3_IS_CONSTEXPR(seqan3::assign_char_to(alphabet_char_t<t>{}, std::remove_reference_t<t>{}));, but the ice remained. Adding requires SEQAN3_IS_CONSTEXPR(seqan3::char_is_valid_for<t>(alphabet_char_t<t>{})); again, removes the ice.

My test script is:

#include <seqan3/alphabet/all.hpp>

int main()
{
    seqan3::char_is_valid_for<seqan3::gapped<seqan3::dna4>>('a');
    return 0;
}

I checked if seqan3::char_is_valid_forseqan3::dna4('a') and seqan3::char_is_valid_forseqan3::gap('-') work and they don't lead to an ice. I also tried using dna5, but there the error remained.

marehr added a commit to marehr/seqan3 that referenced this pull request Feb 3, 2021
This also makes the alphabet a bit less dependent on the meta library
(seqan/product_backlog#124)
marehr and others added 2 commits February 3, 2021 12:34
This also makes the alphabet a bit less dependent on the meta library
(seqan/product_backlog#124)
@marehr
Copy link
Member

marehr commented Feb 3, 2021

Let's see whether my fix fixes it :)

@codecov
Copy link

codecov bot commented Feb 3, 2021

Codecov Report

Merging #2337 (d159be3) into master (44ba173) will decrease coverage by 0.00%.
The diff coverage is 61.53%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2337      +/-   ##
==========================================
- Coverage   98.21%   98.21%   -0.01%     
==========================================
  Files         263      264       +1     
  Lines       10772    10784      +12     
==========================================
+ Hits        10580    10591      +11     
- Misses        192      193       +1     
Impacted Files Coverage Δ
...ude/seqan3/alphabet/composite/alphabet_variant.hpp 100.00% <ø> (ø)
include/seqan3/alphabet/concept.hpp 100.00% <ø> (ø)
include/seqan3/io/alignment_file/format_sam.hpp 96.33% <0.00%> (-1.80%) ⬇️
...de/seqan3/io/alignment_file/sam_tag_dictionary.hpp 100.00% <ø> (ø)
...nclude/seqan3/core/configuration/configuration.hpp 100.00% <100.00%> (ø)
include/seqan3/core/detail/debug_stream_byte.hpp 100.00% <100.00%> (ø)
...n3/search/dream_index/interleaved_bloom_filter.hpp 100.00% <100.00%> (ø)
include/seqan3/core/detail/debug_stream_type.hpp 76.92% <0.00%> (+15.38%) ⬆️

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 44ba173...4aae623. Read the comment docs.

@marehr marehr requested review from eseiler, a team and simonsasse and removed request for eseiler and a team February 3, 2021 12:45
Copy link
Member

@simonsasse simonsasse left a comment

Choose a reason for hiding this comment

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

Looks good to me 🥳

@eseiler eseiler merged commit 7e3c783 into seqan:master Feb 8, 2021
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.

Update writable_alphabet concept
4 participants