Skip to content

Commit

Permalink
v0.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fraterenz committed Jul 19, 2024
1 parent ca93da0 commit 7cc9fd0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 29 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.24.0
- Increase the number of max iterations and cells
- Save at the end of the simulation
- Specify either years or cells to simulate in the app

## 0.23.0
Huge update to remove useless stuff and keep only the content relevant for the PhD thesis.
Remove `abc` in rust, do it in python.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ecdna-evo"
version = "0.23.0"
version = "0.24.0"
edition = "2021"
repository = "https://github.com/fraterenz/ecdna-evo"
description = "Evolutionary models of extra-chromosomal DNA (ecDNA)"
Expand Down
13 changes: 0 additions & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,6 @@ pub mod test_util {
use ecdna_lib::{distribution::EcDNADistribution, DNACopy};
use quickcheck::{Arbitrary, Gen};

#[derive(Clone, Debug)]
struct DNACopyGreaterOne(DNACopy);

impl Arbitrary for DNACopyGreaterOne {
fn arbitrary(g: &mut Gen) -> DNACopyGreaterOne {
let mut copy = NonZeroU16::arbitrary(g);
if copy == NonZeroU16::new(1).unwrap() {
copy = NonZeroU16::new(2).unwrap();
}
DNACopyGreaterOne(copy)
}
}

#[derive(Clone, Debug)]
pub struct NonEmptyDistribtionWithNPlusCells(pub EcDNADistribution);

Expand Down
14 changes: 0 additions & 14 deletions src/segregation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ mod tests {
use crate::test_util::DNACopySegregatingGreatherThanOne;

use super::*;
use quickcheck::{Arbitrary, Gen};
use quickcheck_macros::quickcheck;
use rand::SeedableRng;
use rand_chacha::ChaCha8Rng;
Expand Down Expand Up @@ -246,19 +245,6 @@ mod tests {
assert_eq!(u16::from(copy.0), copy_segregating.get());
}

#[derive(Clone, Debug)]
struct AvoidOverflowDNACopy(DNACopy);

impl Arbitrary for AvoidOverflowDNACopy {
fn arbitrary(g: &mut Gen) -> AvoidOverflowDNACopy {
let mut copy = DNACopy::arbitrary(g);
while copy >= NonZeroU16::new(u16::MAX / 2).unwrap() {
copy = DNACopy::arbitrary(g);
}
AvoidOverflowDNACopy(copy)
}
}

#[quickcheck]
fn segregate_deterministic_test(
copies: DNACopySegregatingGreatherThanOne,
Expand Down

0 comments on commit 7cc9fd0

Please sign in to comment.