NREL / SSRS

A stochastic agent-based model for predicting raptor movements during updraft-subsidized directional flights
https://www.osti.gov/doecode/biblio/63192
BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

Add regression tests #18

Closed ewquon closed 2 years ago

ewquon commented 2 years ago

Tests are based on the four validation tracks from Sandhu et al 2022, Ecological Modelling. Stored data include repeatable single-core simulations of 500 eagles--the full test suite takes 8.5 minutes on my macbook. There isn't continuous integration but you can manually run the reg tests with the tests/test.py script (FYI, @rthedin). First time through is a little bit messy on the screen because of how the elevation package does SRTM data retrieval, but subsequent runs should result in:

TOTW_case1_2020-03-18_12Z : PASS
TOTW_case2_2020-03-04_13Z : PASS
TOTW_case3_2019-07-03_12Z : PASS
TOTW_case4_2020-04-18_10Z : PASS

On-screen simulation output gets redirected to log.rtest.

@rimplesandhu, this commit https://github.com/NREL/SSRS/commit/ccc170c9968e538386dac2e452f8291b1b881550 has the fixes to give us similar results as your original code.

In addition, this PR introduces new capabilities:

Also there are two bug fixes that should be inconsequential: