Skip to content

Commit

Permalink
Remove svn dependency for data files in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaasgoyal committed Jan 19, 2024
1 parent a7fc82b commit 5d23acc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 27 deletions.
4 changes: 0 additions & 4 deletions benchcab/fluxsite.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,6 @@ def setup_task(self, verbose=False):
"restart": False,
},
"fixedCO2": internal.CABLE_FIXED_CO2_CONC,
"casafile": {
"phen": str(internal.PHEN_FILE.absolute()),
"cnpbiome": str(internal.CNPBIOME_FILE.absolute()),
},
"spinup": False,
}
},
Expand Down
23 changes: 4 additions & 19 deletions benchcab/internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,11 @@
# Relative path to core namelist files
NAMELIST_DIR = Path("namelists")

# Relative path to CABLE Auxiliary repository
CABLE_AUX_DIR = SRC_DIR / "CABLE-AUX"
# Path to grid files
GRID_DIR = Path("/g/data/rp23/data/no_provenance/gridinfo")

# Relative URL path to CABLE Auxiliary repository on SVN
CABLE_AUX_RELATIVE_SVN_PATH = "branches/Share/CABLE-AUX"

# TODO(Sean): hard coding paths assets in CABLE_AUX is brittle, these should
# be promoted to config parameters, especially since we no longer throw exceptions
# when the assets cannot be found.

# Relative path to CABLE grid info file
GRID_FILE = CABLE_AUX_DIR / "offline" / "gridinfo_CSIRO_1x1.nc"

# Relative path to modis_phenology_csiro.txt
PHEN_FILE = CABLE_AUX_DIR / "core" / "biogeochem" / "modis_phenology_csiro.txt"

# Relative path to pftlookup_csiro_v16_17tiles.csv
CNPBIOME_FILE = (
CABLE_AUX_DIR / "core" / "biogeochem" / "pftlookup_csiro_v16_17tiles.csv"
)
# Path CABLE grid info file
GRID_FILE = GRID_DIR / "crujra_accessN96_gridinfo.nc"

# Fluxsite directory tree
FLUXSITE_DIRS: dict[str, Path] = {}
Expand Down
4 changes: 0 additions & 4 deletions tests/test_fluxsite.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,6 @@ def test_all_settings_are_patched_into_namelist_file(self, task):
},
"output": {"restart": False},
"fixedco2": internal.CABLE_FIXED_CO2_CONC,
"casafile": {
"phen": str(internal.PHEN_FILE.absolute()),
"cnpbiome": str(internal.CNPBIOME_FILE.absolute()),
},
"spinup": False,
"some_setting": True,
"some_branch_specific_setting": True,
Expand Down

0 comments on commit 5d23acc

Please sign in to comment.