-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #575: fix experiment.simulations type issue * #575: initial function implementation * #575: code cleanup * #575: add unit tests * add missing __init__.py file for ssmt * #575: add new feature: skip sims * #575: add more detailed description for the filter method * #575: move tests to comps' tests * Update test_filter_simulations.py * forgot test files, adding... * fix typo in comment * Update names for test * update ssmt tests * update tests * update werkzeug version * .gitignore * #575: add unit tests * $(git log --format=%B --reverse HEAD..HEAD@{1}) * fix werkzeug package issue * add pytest mark for ssmt tests Co-authored-by: ZDu-IDM <zdu@idmod.org>
- Loading branch information
1 parent
a1d89ca
commit 927e73a
Showing
31 changed files
with
264 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ pandas==0.24.2 | |
pipreqs==0.4.9 | ||
pluggy~=0.12 | ||
PyYaml~=5.1 | ||
tabulate~=0.8.3 | ||
tabulate~=0.8.3 | ||
Werkzeug==0.16.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
8 changes: 1 addition & 7 deletions
8
.../tests/test_ssmt/inputs/SimpleAnalyzer.py → ...form_comps/tests/inputs/SimpleAnalyzer.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[COMMON] | ||
# Number of threads idm-tools will use for analysis and other multi-threaded activities | ||
max_threads = 16 | ||
|
||
# How many simulations per threads during simulation creation | ||
sims_per_thread = 20 | ||
|
||
# Maximum number of LOCAL simulation ran simultaneously | ||
max_local_sims = 6 | ||
|
||
[COMPS] | ||
type = COMPS | ||
endpoint = https://comps.idmod.org | ||
environment = Belegost | ||
priority = Lowest | ||
simulation_root = $COMPS_PATH(USER)\output | ||
node_group = emod_abcd | ||
num_retires = 0 | ||
num_cores = 1 | ||
exclusive = False | ||
test1 = 1 | ||
test2 = 2 | ||
|
||
[COMPS2] | ||
type = COMPS | ||
endpoint = https://comps2.idmod.org | ||
environment = Bayesian | ||
priority = Lowest | ||
simulation_root = $COMPS_PATH(USER)\output | ||
node_group = emod_abcd | ||
num_retires = 0 | ||
num_cores = 1 | ||
exclusive = False | ||
max_workers = 16 | ||
batch_size = 10 | ||
work_item_type = DockerWorker | ||
docker_image = idm-docker-staging.packages.idmod.org/idmtools_comps_ssmt_worker:0.3.0 | ||
plugin_key = 1.0.0.0_RELEASE | ||
|
||
|
||
[SSMT] | ||
type = SSMT | ||
endpoint = https://comps2.idmod.org | ||
environment = Bayesian | ||
priority = Lowest | ||
simulation_root = $COMPS_PATH(USER)\output | ||
node_group = emod_abcd | ||
num_retires = 0 | ||
num_cores = 1 | ||
exclusive = False | ||
work_item_type = DockerWorker | ||
docker_image = idm-docker-staging.packages.idmod.org/idmtools_comps_ssmt_worker:0.3.0 | ||
plugin_key = 1.0.0.0_RELEASE | ||
|
||
[Logging] | ||
level = DEBUG | ||
console = on | ||
|
||
# This is a test we used to validate loading local from section block | ||
[Custom_Local] | ||
type = Local | ||
|
||
# Path to the model executable | ||
exe_path = \\internal.idm.ctr\IDM-Test\home\mafisher\bin\Eradication.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import os | ||
import sys | ||
from sys import argv | ||
|
||
|
||
from idmtools.analysis.analyze_manager import AnalyzeManager | ||
from idmtools.core import ItemType | ||
from idmtools.core.platform_factory import Platform | ||
|
||
sys.path.append(os.path.dirname(__file__)) | ||
from PopulationAnalyzer import PopulationAnalyzer | ||
|
||
if __name__ == "__main__": | ||
platform = Platform('SSMT') | ||
|
||
analyzers = [PopulationAnalyzer()] | ||
if len(sys.argv) > 1: | ||
expid = [] | ||
expid.append((argv[1], ItemType.EXPERIMENT)) | ||
expid.append((argv[2], ItemType.EXPERIMENT)) | ||
else: | ||
expid = [('8bb8ae8f-793c-ea11-a2be-f0921c167861',ItemType.EXPERIMENT), | ||
('4ea96af7-1549-ea11-a2be-f0921c167861',ItemType.EXPERIMENT)] | ||
am = AnalyzeManager(platform=platform, ids=expid, analyzers=analyzers) | ||
am.analyze() |
Oops, something went wrong.