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

Remove dependency on StableRNGs #188

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

jakobnissen
Copy link
Member

Remove StableRNGs from dependencies.
Methods for LongSequence generation now default to using Random.DEFAULT_RNG.
StableRNGs is kept as a test dependency to test reproducibility.
See issue #187.

Remove StableRNGs from dependencies.
Methods for LongSequence generation now default to using Random.DEFAULT_RNG.
StableRNGs is kept as a test dependency to test reproducibility.
See issue BioJulia#187.
@codecov
Copy link

codecov bot commented Oct 5, 2021

Codecov Report

Merging #188 (1434353) into v3 (14f551b) will increase coverage by 0.61%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v3     #188      +/-   ##
==========================================
+ Coverage   82.27%   82.88%   +0.61%     
==========================================
  Files          31       31              
  Lines        2183     2401     +218     
==========================================
+ Hits         1796     1990     +194     
- Misses        387      411      +24     
Flag Coverage Δ
unittests 82.88% <100.00%> (+0.61%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/BioSequences.jl 0.00% <ø> (ø)
src/longsequences/randseq.jl 100.00% <100.00%> (ø)
src/biosequence/copying.jl 41.66% <0.00%> (-3.79%) ⬇️
src/longsequences/transformations.jl 81.05% <0.00%> (-1.45%) ⬇️
src/alphabet.jl 80.30% <0.00%> (-1.37%) ⬇️
src/bit-manipulation/bitpar-compiler.jl 38.46% <0.00%> (-0.28%) ⬇️
src/biosequence/transformations.jl 80.85% <0.00%> (-0.05%) ⬇️
src/longsequences/longsequence.jl 100.00% <0.00%> (ø)
src/geneticcode.jl 59.63% <0.00%> (+0.03%) ⬆️
... and 19 more

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 14f551b...1434353. Read the comment docs.

@TransGirlCodes TransGirlCodes merged commit 9e6460f into BioJulia:v3 Oct 5, 2021
@KristofferC
Copy link

StableRNGs is kept as a test dependency to test reproducibility.

It doesn't look it StableRNG is used for the tests?

Here is the default global rng used:

and here:

x[i] = elements[searchsorted(cumprobs, rand()).start]

etc

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