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

Add --circuit-random-seed command line flag. #527

Merged
merged 1 commit into from
Aug 21, 2018

Conversation

karjonas
Copy link
Contributor

This makes the circuit loading deterministic by default. To get randomness --circuit-random-seed is used. Using BRAIN_CIRCUIT_SEED is no longer supported.

@karjonas karjonas requested a review from favreau August 20, 2018 14:24
@ppodhajski
Copy link
Contributor

retest this please

@karjonas karjonas requested a review from hernando August 21, 2018 14:20
@@ -152,6 +153,8 @@ GeometryParameters::GeometryParameters()
"Minimum and maximum values for the simulation [float float]")(
PARAM_CIRCUIT_SIMULATION_HISTOGRAM_SIZE.c_str(), po::value<size_t>(),
"Number of values defining the simulation histogram [int]")(
PARAM_CIRCUIT_RANDOM_SEED.c_str(), po::value<size_t>(),
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd use const char* for all these strings if you really need the C representation in the end

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems reasonable, but that is for another PR.

@karjonas
Copy link
Contributor Author

retest this please

This makes the circuit loading deterministic by default. To get randomness --circuit-random-seed is used. Using BRAIN_CIRCUIT_SEED is no longer supported.
@karjonas karjonas merged commit 5dcdcdd into BlueBrain:master Aug 21, 2018
@karjonas karjonas deleted the random_seed branch August 22, 2018 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants