From 498e5477c2c54cf24aa69ab9b8eda396fe020dcd Mon Sep 17 00:00:00 2001 From: David Hendriks <davidhendriks93@gmail.com> Date: Sat, 5 Nov 2022 13:13:26 +0000 Subject: [PATCH] added idea to the MC result queue --- .../population_extensions/evolution_functions.py | 12 ++++++++++-- pyproject.toml | 5 +---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/binarycpython/utils/population_extensions/evolution_functions.py b/binarycpython/utils/population_extensions/evolution_functions.py index 2b301d83f..872d38619 100644 --- a/binarycpython/utils/population_extensions/evolution_functions.py +++ b/binarycpython/utils/population_extensions/evolution_functions.py @@ -543,7 +543,7 @@ class evolution_functions: self._monte_carlo_sampling_check_mass_threshold(system_dict) # Check based on custom threshold, which uses the result_queue - # TODO: process the result_queue and pass this. HOw we do this (get only one, or get until the result queue is empty again) + # TODO: process the result_queue and pass this. How we do this (get only one, or get until the result queue is empty again) self._monte_carlo_sampling_check_custom_threshold(result_queue) ###### @@ -826,7 +826,15 @@ class evolution_functions: # If we're doing monte-carlo sampling with a custom if system_result is not None: # 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") end_runtime_binary_c = time.time() diff --git a/pyproject.toml b/pyproject.toml index 9457f5fa1..478ef7e5d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,4 @@ max-line-length = 89 max-complexity = 18 [tool.coverage] - -omit = - binarycpython/tests/* - */tests/* +omit = ["binarycpython/tests/*", "*/tests/*"] -- GitLab