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
498e5477
Commit
498e5477
authored
2 years ago
by
David Hendriks
Browse files
Options
Downloads
Patches
Plain Diff
added idea to the MC result queue
parent
9712c6ef
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
binarycpython/utils/population_extensions/evolution_functions.py
+10
-2
10 additions, 2 deletions
...python/utils/population_extensions/evolution_functions.py
pyproject.toml
+1
-4
1 addition, 4 deletions
pyproject.toml
with
11 additions
and
6 deletions
binarycpython/utils/population_extensions/evolution_functions.py
+
10
−
2
View file @
498e5477
...
@@ -543,7 +543,7 @@ class evolution_functions:
...
@@ -543,7 +543,7 @@ class evolution_functions:
self
.
_monte_carlo_sampling_check_mass_threshold
(
system_dict
)
self
.
_monte_carlo_sampling_check_mass_threshold
(
system_dict
)
# Check based on custom threshold, which uses the result_queue
# Check based on custom threshold, which uses the result_queue
# TODO: process the result_queue and pass this. H
O
w we do this (get only one, or get until the result queue is empty again)
# TODO: process the result_queue and pass this. H
o
w we do this (get only one, or get until the result queue is empty again)
self
.
_monte_carlo_sampling_check_custom_threshold
(
result_queue
)
self
.
_monte_carlo_sampling_check_custom_threshold
(
result_queue
)
######
######
...
@@ -826,7 +826,15 @@ class evolution_functions:
...
@@ -826,7 +826,15 @@ class evolution_functions:
# If we're doing monte-carlo sampling with a custom
# If we're doing monte-carlo sampling with a custom
if
system_result
is
not
None
:
if
system_result
is
not
None
:
# TODO: fix that this is only handle if user-defined function is given
# TODO: fix that this is only handle if user-defined function is given
# result_queue.put(system_result)
# TODO: perhaps we should always put things in the system_result dict if the parse_function gives back something
# result_queue.put(
# {
# "system_result": system_result,
# "system_number": system_number,
# "full_system_dict": full_system_dict,
# }
# )
raise
NotImplementedError
(
"
Functionality not implemented
"
)
raise
NotImplementedError
(
"
Functionality not implemented
"
)
end_runtime_binary_c
=
time
.
time
()
end_runtime_binary_c
=
time
.
time
()
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
4
View file @
498e5477
...
@@ -26,7 +26,4 @@ max-line-length = 89
...
@@ -26,7 +26,4 @@ max-line-length = 89
max-complexity
=
18
max-complexity
=
18
[tool.coverage]
[tool.coverage]
omit
=
[
"binarycpython/tests/*"
,
"*/tests/*"
]
omit
=
binarycpython/tests/*
*/tests/*
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