Skip to content

Commit

Permalink
Use crop abbreviation from crop parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
burggraaff committed Jun 4, 2024
1 parent ec9af2e commit b02b441
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fpcup/nn/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from torch import Tensor, tensor
from torch.utils.data import DataLoader, Dataset, TensorDataset

from ..crop import CROP2ABBREVIATION
from ..io import load_combined_ensemble_summary
from ..model import InputSummary, Summary
from ..typing import Optional, PathOrStr
Expand All @@ -18,10 +19,11 @@
### CONSTANTS
# Temporary: keep it simple
CROP = "barley"
CROP_ABBREVIATION = CROP2ABBREVIATION[CROP]
VARIETY = "Spring_barley_301"
SOILTYPE = "ec3"
pattern = f"*_{SOILTYPE}_B*"
# pattern = f"*_B*"
pattern = f"*_{SOILTYPE}_{CROP_ABBREVIATION}*"
# pattern = f"*_{CROP_ABBREVIATION}*"
pattern_suffix = pattern + ".wsum"


Expand Down

0 comments on commit b02b441

Please sign in to comment.