diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e660e90..2e20c91 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - run: python3 -m pip install --upgrade build && python3 -m build @@ -15,4 +15,4 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }} - \ No newline at end of file + diff --git a/.github/workflows/push_pr.yml b/.github/workflows/push_pr.yml index 10c2c97..9caa5d5 100644 --- a/.github/workflows/push_pr.yml +++ b/.github/workflows/push_pr.yml @@ -14,7 +14,7 @@ jobs: os: ["ubuntu-latest"] python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true lfs: true diff --git a/spec2nii/jmrui.py b/spec2nii/jmrui.py index 498d6fe..9ce02bb 100644 --- a/spec2nii/jmrui.py +++ b/spec2nii/jmrui.py @@ -252,7 +252,7 @@ def readjMRUItxt(filename): data = [] recordData = False signal_index = 0 - with open(filename, 'r') as txtfile: + with open(filename) as txtfile: for line in txtfile: headerComp = headerRe.match(line) if headerComp: