Skip to content

Commit ab96eff

Browse files
committed
MCMC FJC
1 parent 51c305f commit ab96eff

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

conftest.py

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ def pytest_collection_finish(session):
2020
run(
2121
['sed', '-i', 's@: test@@', '__pycache__/cargo.tests']
2222
)
23+
# remove monte carlo tests
24+
run(
25+
['sed', '-i', '-r', '/monte/d', '__pycache__/cargo.tests']
26+
)
2327
f = open("__pycache__/julia.tests", "w")
2428
run(
2529
['grep', '-r', '@testset', 'src/'],

src/physics/single_chain/fjc/thermodynamics/isometric/monte_carlo/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ mod test;
22

33
use rand::prelude::*;
44

5-
const TWO_PI: f64 = 6.283_185_307_179_586;
5+
use std::f64::consts::TAU as TWO_PI;
66

77
pub fn random_configuration<const NUMBER_OF_LINKS: usize>(rng: &mut ThreadRng) -> [[f64; 3]; NUMBER_OF_LINKS]
88
{

0 commit comments

Comments
 (0)