Skip to content

Commit

Permalink
remove 3.10 from testing matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Jan 30, 2024
1 parent d5dfc43 commit 022f40c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.10"]

steps:
- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -43,10 +43,10 @@ jobs:
# Run on a push to a tag or master
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.10

- name: Install latest setuptools, wheel, pip
run: python3 -m pip install -U pip setuptools wheel
Expand Down
2 changes: 1 addition & 1 deletion pfb/workers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def cli():
from pfb.workers import (init, grid, degrid,
clean, restore, fwdbwd,
spotless, model2comps,
forward,fastim)
forward, fastim)
5 changes: 4 additions & 1 deletion pfb/workers/model2comps.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def model2comps(**kw):
opts = OmegaConf.create(defaults)
import time
timestamp = time.strftime("%Y%m%d-%H%M%S")
pyscilog.log_to_file(f'model2comps_{timestamp}.log')
ldir = Path(opts.log_directory).resolve()
ldir.mkdir(parents=True, exist_ok=True)
pyscilog.log_to_file(f'{ldir}/model2comps_{timestamp}.log')
print(f'Logs will be written to {str(ldir)}/model2comps_{timestamp}.log', file=log)

OmegaConf.set_struct(opts, True)

Expand Down

0 comments on commit 022f40c

Please sign in to comment.