Skip to content

Commit

Permalink
Resolve merge conflict with config branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kks32 committed Jun 28, 2024
2 parents e28275c + a28603e commit e3283cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Black linter
run: |
black --check .
- name: PyTest
run: |
Expand All @@ -22,8 +26,4 @@ jobs:
TMP_DIR="../gns-sample"
DATASET_NAME="WaterDropSample"
git clone https://github.com/geoelements/gns-sample ../gns-sample
python -m gns.train mode="train" training.steps=10
- name: Black linter
run: |
black --check .
python -m gns.train mode="train" training.steps=10
2 changes: 1 addition & 1 deletion gns/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def predict(device: str, cfg: DictConfig):
# Use `valid`` set for eval mode if not use `test`
split = (
"test"
if (cfg.mode == "rollout" or (not os.path.isfile("{cfg.data_path}valid.npz")))
if (cfg.mode == "rollout" or (not os.path.isfile("{cfg.data.path}valid.npz")))
else "valid"
)

Expand Down

0 comments on commit e3283cf

Please sign in to comment.