Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
binary_c-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Izzard, Robert Dr (Maths & Physics)
binary_c-python
Commits
be2f24d2
Commit
be2f24d2
authored
2 years ago
by
David Hendriks
Browse files
Options
Downloads
Patches
Plain Diff
updated stopping criterion MC
parent
42b448fc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
binarycpython/utils/population_extensions/evolution_functions.py
+14
-1
14 additions, 1 deletion
...python/utils/population_extensions/evolution_functions.py
with
14 additions
and
1 deletion
binarycpython/utils/population_extensions/evolution_functions.py
+
14
−
1
View file @
be2f24d2
...
@@ -556,7 +556,15 @@ class evolution_functions:
...
@@ -556,7 +556,15 @@ class evolution_functions:
# this can be set in the _monte_carlo_sampling_check_mass_threshold function or via _monte_carlo_sampling_check_custom_threshold
# this can be set in the _monte_carlo_sampling_check_mass_threshold function or via _monte_carlo_sampling_check_custom_threshold
if
self
.
grid_options
[
"
_monte_carlo_threshold_reached
"
]:
if
self
.
grid_options
[
"
_monte_carlo_threshold_reached
"
]:
# TODO: Write a correct signalling of stopping the queue while
# TODO: Write a correct signalling of stopping the queue while
print
(
"
_monte_carlo_threshold_reached True. WHAT TO DO NOW??
"
)
self
.
verbose_print
(
"
Monte-Carlo threshold reached. Signaling to stop processing the queue{}
"
,
self
.
grid_options
[
"
verbosity
"
],
2
,
)
# Queue is done:
self
.
grid_options
[
"
_queue_done
"
]
=
True
########
########
# Put system in the job queue
# Put system in the job queue
...
@@ -573,6 +581,11 @@ class evolution_functions:
...
@@ -573,6 +581,11 @@ class evolution_functions:
3
,
3
,
)
)
########
# Handle stopping
if
self
.
grid_options
[
"
_queue_done
"
]
==
True
:
break
# Signal queue is done
# Signal queue is done
self
.
grid_options
[
"
_queue_done
"
]
=
True
self
.
grid_options
[
"
_queue_done
"
]
=
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment