Skip to content
Snippets Groups Projects
Commit 1f3be20d authored by Levi Pfantz's avatar Levi Pfantz
Browse files

Swap out simulated goes19 data for prelim goes19 data and add __version__.py

parent 32615ae9
No related branches found
No related tags found
1 merge request!37Merge work from 1.1 into master
...@@ -26,7 +26,7 @@ docker push gitlab.ssec.wisc.edu:5555/cspp_geo/cspp-geo-gridded-glm/buildbucket: ...@@ -26,7 +26,7 @@ docker push gitlab.ssec.wisc.edu:5555/cspp_geo/cspp-geo-gridded-glm/buildbucket:
To create the Gridded GLM package with the version number 1.0.0 in your current directory: To create the Gridded GLM package with the version number 1.0.0 in your current directory:
```bash ```bash
docker run --rm -v "${PWD}":/dock gitlab.ssec.wisc.edu:5555/cspp_geo/cspp-geo-gridded-glm/buildbucket:latest ./package.sh 1.0.0 docker run --rm -v "${PWD}":/dock --env GGLM_REF=develop gitlab.ssec.wisc.edu:5555/cspp_geo/cspp-geo-gridded-glm/buildbucket:latest ./package.sh 1.0.0
``` ```
If some things need to be customized you can specify various environment If some things need to be customized you can specify various environment
......
# __version__.py
__version__ = "1.1.0"
...@@ -163,12 +163,12 @@ def test_g18(): ...@@ -163,12 +163,12 @@ def test_g18():
assert(check_fileglob('CSPP_OR_GLM-L2-GLMF-M3_G18_T52_20221110190100.nc', 1)) assert(check_fileglob('CSPP_OR_GLM-L2-GLMF-M3_G18_T52_20221110190100.nc', 1))
def test_g19_sim(): def test_g19_sim():
inputs = [os.path.join(TESTDIR, "test-inputs/goes19_sim/OR_GLM-L2-LCFA_G19_s20240040000000_e20240040000200_c20240040000219.nc"), inputs = [os.path.join(TESTDIR, "test-inputs/goes19-prelim/OR_GLM-L2-LCFA_G19_s20243230309000_e20243230309200_c20243230309216.nc"),
os.path.join(TESTDIR, "test-inputs/goes19_sim/OR_GLM-L2-LCFA_G19_s20240040000400_e20240040001000_c20240040001016.nc"), os.path.join(TESTDIR, "test-inputs/goes19-prelim/OR_GLM-L2-LCFA_G19_s20243230309200_e20243230309400_c20243230309415.nc"),
os.path.join(TESTDIR, "test-inputs/goes19_sim/OR_GLM-L2-LCFA_G19_s20240040000200_e20240040000400_c20240040000416.nc")] os.path.join(TESTDIR, "test-inputs/goes19-prelim/OR_GLM-L2-LCFA_G19_s20243230309400_e20243230310000_c20243230310015.nc")]
for i in inputs: for i in inputs:
if not os.path.exists(i): if not os.path.exists(i):
warnings.warn(UserWarning("GOES-19 sim test files are not available in this environment. GOES-19 functionality has not been tested.")) warnings.warn(UserWarning("GOES-19 prelim test files are not available in this environment. GOES-19 functionality has not been tested."))
return return
completed_process = subprocess.run(['python', completed_process = subprocess.run(['python',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment