Skip to content

Commit

Permalink
Merge pull request #371 from DEploid-dev/rversion_update
Browse files Browse the repository at this point in the history
expose randomseed
  • Loading branch information
shajoezhu authored Dec 22, 2024
2 parents c0cf33e + 877ddf5 commit 8547a37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
# See: https://github.com/marketplace/actions/coveralls-github-action
- name: Coveralls
if: matrix.name == 'ubuntu-gcc-9'
uses: coverallsapp/github-action@v1.1.2
uses: coverallsapp/github-action@v2.3.4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
#run: coveralls --exclude lib --exclude tests --exclude src/random --exclude src/codeCogs/ --exclude src/export/ --exclude src/gzstream/ --gcov-options '\-lp'
1 change: 0 additions & 1 deletion src/dEploidIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,6 @@ void DEploidIO::readPanel() {
DEploidIO::DEploidIO(const DEploidIO &cpFrom) {
this->setIsCopied(true);
this->setDoExportRecombProb(cpFrom.doExportRecombProb());
//this->setrandomSeedWasGiven(cpFrom.randomSeedWasGiven());
this->setCompressVcf(cpFrom.compressVcf());
this->setInitialPropWasGiven(cpFrom.initialPropWasGiven());
this->setInitialHapWasGiven(cpFrom.initialHapWasGiven());
Expand Down
5 changes: 4 additions & 1 deletion src/dEploidIO.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ class DEploidIO{
void workflow_ibd();
void workflow_best();

// Make this public so it is also accessible from
Parameter <size_t> randomSeed_;
bool randomSeedWasSet() const {return this->randomSeed_.useUserDefined(); }

private:
void setBestPracticeParameters();
void core();
Expand Down Expand Up @@ -233,7 +237,6 @@ class DEploidIO{
Parameter <size_t> kStrain_;
Parameter <size_t> precision_;
Parameter <size_t> nMcmcSample_;
Parameter <size_t> randomSeed_;
Parameter <size_t> mcmcMachineryRate_;
Parameter <double> mcmcBurn_;

Expand Down

0 comments on commit 8547a37

Please sign in to comment.