Skip to content

Commit 6fab4ec

Browse files
committed
Move test to generate
1 parent e0f0728 commit 6fab4ec

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@ python compliance_checker.py --source-path ./Models/GrIS/ISMIP7/SYNTH1/CORE --va
4747

4848
## Generating synthetic test files
4949

50-
`test/generate_test_files.py` creates ISMIP7-style NetCDF test files with synthetic data. See [test/README.md](test/README.md) for full options and examples.
50+
`generate/generate_test_files.py` creates ISMIP7-style NetCDF test files with synthetic data. See [generate/README.md](generate/README.md) for full options and examples.
5151

5252
```bash
5353
conda activate isschecker
5454

5555
# Generate 286-year GrIS ctrl xyt variables
56-
python test/generate_test_files.py --grid GrIS_16000m --scenario ctrl --xyt --nyears 286 --start-year 2015
56+
python generate/generate_test_files.py --grid GrIS_16000m --scenario ctrl --xyt --nyears 286 --start-year 2015
5757

5858
# Generate 286-year AIS ctrl scalar variables
59-
python test/generate_test_files.py --grid AIS_16000m --scenario ctrl --scalars --nyears 286 --start-year 2015
59+
python generate/generate_test_files.py --grid AIS_16000m --scenario ctrl --scalars --nyears 286 --start-year 2015
6060

6161
# List available grids
62-
python test/generate_test_files.py --list-grids
62+
python generate/generate_test_files.py --list-grids
6363
```
6464

6565
---

test/README.md renamed to generate/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# ISMIP7 NetCDF generator
22

3-
`test/generate_test_files.py` creates ISMIP7-style NetCDF test files with synthetic data, one file per variable, following the naming convention and grid definitions used by the compliance checker.
3+
`generate/generate_test_files.py` creates ISMIP7-style NetCDF test files with synthetic data, one file per variable, following the naming convention and grid definitions used by the compliance checker.
44

55
Files are written to `Models/{GrIS|AIS}/ISMIP7/SYNTH1/CORE/`.
66

77
## Usage
88

99
```bash
1010
conda activate isschecker
11-
python test/generate_test_files.py [OPTIONS]
11+
python generate/generate_test_files.py [OPTIONS]
1212
```
1313

1414
## Key options
@@ -32,22 +32,22 @@ python test/generate_test_files.py [OPTIONS]
3232

3333
```bash
3434
# List available grids
35-
python test/generate_test_files.py --list-grids
35+
python generate/generate_test_files.py --list-grids
3636

3737
# Generate 286-year GrIS ctrl files (x,y,t variables)
38-
python test/generate_test_files.py --grid GrIS_16000m --scenario ctrl \
38+
python generate/generate_test_files.py --grid GrIS_16000m --scenario ctrl \
3939
--xyt --nyears 286 --start-year 2015
4040

4141
# Generate 286-year AIS ssp370 files
42-
python test/generate_test_files.py --grid AIS_08000m --scenario ssp370 \
42+
python generate/generate_test_files.py --grid AIS_08000m --scenario ssp370 \
4343
--xyt --nyears 286 --start-year 2015
4444

4545
# Generate scalar-only variables
46-
python test/generate_test_files.py --grid GrIS_16000m --scenario ctrl \
46+
python generate/generate_test_files.py --grid GrIS_16000m --scenario ctrl \
4747
--scalars --nyears 286 --start-year 2015
4848

4949
# Generate both 3D and scalar variables, including non-mandatory ones
50-
python test/generate_test_files.py --grid GrIS_16000m --scenario ctrl \
50+
python generate/generate_test_files.py --grid GrIS_16000m --scenario ctrl \
5151
--xyt --scalars --include-non-mandatory --nyears 286 --start-year 2015
5252
```
5353

tests/test_compliance_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
def _load_generator_module():
19-
generator_path = REPO_ROOT / "test" / "generate_test_files.py"
19+
generator_path = REPO_ROOT / "generate" / "generate_test_files.py"
2020
spec = importlib.util.spec_from_file_location("generate_test_files", generator_path)
2121
assert spec is not None
2222
module = importlib.util.module_from_spec(spec)

0 commit comments

Comments
 (0)