You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [Description]When using a DownloadAnalyzer to download an experiment if it hits an error on one sim (for example did not find a file it is trying to download) it stops. I think it would be useful to have it stop with that sim but continue trying to download the rest of the sims.
- [What I Did]Download the first third of sims in the experiment but not know if the last 2/3 where missing the file or just the next one.
I was recently using a DownloadAnalyzer to download the outputs of an experiment with 100 sims in it. It downloaded 32 sims and then stopped. Looking at the log it failed on the next sims because one of the files (a plot) that it was trying to download was missing. However, I think most of the 68 sims that were not downloaded had all the files and would like the "bad" sim to be skipped and the others to downloaded or at least attempted.
What I Did
from idmtools.analysis.analyze_manager import AnalyzeManager
from idmtools.analysis.download_analyzer import DownloadAnalyzer
from idmtools.core import ItemType
from idmtools.core.platform_factory import Platform
if __name__ == "__main__":
# Set the platform where you want to run your analysis
platform = Platform('Calculon')
experiment_id = '7f8c52bb-d991-eb11-a2ce-c4346bcb1550'
output_path='sweepRuns/All/R028/5000000'
ignorelist = []
files = 'all'
if files == 'all':
filenames = ['config.json', 'outputs/summary.json', 'outputs/Plots/snapshots_over_nodes_E10.png',
'outputs/Plots/snapshots_over_nodes_E10.png', 'outputs/Plots/snapshots_over_nodes_not_S0.png',
'outputs/Plots/t_AFP.png', 'outputs/Plots/time_series_S0.png', 'outputs/Plots/time_series_R.png',
'outputs/DDApolio_SIA-Heir.hdf5', 'stdout.txt', 'stderr.txt']
analyzers = [DownloadAnalyzer(filenames=filenames, output_path=output_path)]
elif files == 'plots':
filenames = ['config.json', 'outputs/summary.json',
'outputs/Plots/snapshots_over_nodes_E10.png', 'stdout.txt']
analyzers = [DownloadAnalyzer(filenames=filenames, output_path=output_path)]
else:
filenames = ['config.json', 'outputs/Plots/stats.pickle', 'outputs/summary.json',
'outputs/summary_noResponse.json', 'outputs/Plots/statsnoResponse_.pickle']
analyzers = [DownloadAnalyzer(filenames=filenames, output_path='output')]
# Specify the id Type, in this case an Experiment
manager = AnalyzeManager(configuration={}, platform=platform, ids=[(experiment_id, ItemType.EXPERIMENT)],
analyzers=analyzers, partial_analyze_ok=True)
manager.analyze()
Extras
Please populate system information by running idmtools info system --issue. To accomplish this, please follow these steps
Ensure idmtool-cli packages is installed. You can do this be installing it using the command
DownloadAnalyzer stop is due to some simulations do not have files analyzer is looking for. The root cause is simulation/experiment do not Fail even something is wrong in simulation. For this case, looks like process got Killed and but simulations are still return "Succeeded" status. (part of the reason is original experiment script did not check exit code for shell script). But Killed process may not fail to exit code anyway.
Table of Contents
Description
I was recently using a DownloadAnalyzer to download the outputs of an experiment with 100 sims in it. It downloaded 32 sims and then stopped. Looking at the log it failed on the next sims because one of the files (a plot) that it was trying to download was missing. However, I think most of the 68 sims that were not downloaded had all the files and would like the "bad" sim to be skipped and the others to downloaded or at least attempted.
What I Did
Extras
Please populate system information by running
idmtools info system --issue
. To accomplish this, please follow these steps> pip install idmtools-cli --index-url=https://packages.idmod.org/api/pypi/pypi-production/simple
> idmtools info system --issue
This will copy the system information to your clipboard
The text was updated successfully, but these errors were encountered: