NAVADMC / ADSM

A simulation of disease spread in livestock populations. Includes detection and containment simulation.
Other
10 stars 5 forks source link

Script To Run Multiple Scenarios #1001

Open BryanHurst opened 4 years ago

BryanHurst commented 4 years ago

It has been requested that we create a script that can be setup in a way to run multiple scenarios back to back.

This should be done in a way that it can work in Windows or Linux, but not require any setup (no dependencies). It may be nice to be able to call this from the UI in the future.

The script should either look at an input file for a list of scenarios or accept them as command line arguments.

missyschoenbaum commented 4 years ago

OK, I will try again. So I am understanding that we want validation to happen in the process. Can we grab whatever process was used to make the validator? It must return a pass/fail somehow.

BryanHurst commented 4 years ago

We did grab the validation function from the main program, and that is passing when we run it.

There must be some extra database sanity checks that are happening somewhere that I'm unfamiliar with.

missyschoenbaum commented 4 years ago

Checking for open ADSM works perfectly.

Got this from new build.

image

BryanHurst commented 4 years ago

Ah, a typo in my last second addition. Fix pushed.

missyschoenbaum commented 4 years ago

OK, I have it running. It did a stack dump on me, so I restarted it. It hasn't happened again. I can see in the auto_log that it looks at RedoSample, gives me the text that it passed validation, but then doesn't run it. Here's 2 examples, one that ran and RedoSample that didn't run.

Auto running DTEst.db... Validating simulation setup... PASSED Running simulation... Done running DTEst.db.

Auto running RedoSample.db... Validating simulation setup... PASSED

missyschoenbaum commented 4 years ago

I will continue to run examples to see if I can stack dump it again.

I found how RedoSample is acting in the process - It just attempts and skips, which is acceptable to me.

image

missyschoenbaum commented 4 years ago

I think we have covered issues. I'm going close, and keep load testing.

missyschoenbaum commented 4 years ago

I had turned on Map Output in this scenario, but I thought it was already on in one of the other examples (DTest in my batch examples has maps on). image

missyschoenbaum commented 4 years ago

Reran same batch as above with no error. @BryanHurst should I close for now, and reopen if needed?

BryanHurst commented 4 years ago

It looks like that last directory is not empty error can come up if there are read only files in one of the output dirs.

I have it set to ignore errors now.