Skip to content

Commit 69f50f7

Browse files
committed
update release-action and fix pylint
1 parent 4ba87e1 commit 69f50f7

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
8+
jobs:
9+
10+
pypi:
11+
runs-on: ubuntu-latest
12+
13+
container:
14+
image: analysiscenter1/ds-py3
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Install dependencies
20+
run: pip3 install --upgrade setuptools wheel twine
21+
22+
- name: Build and publish
23+
env:
24+
TWINE_USERNAME: __token__
25+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
26+
run: |
27+
python3 setup.py sdist bdist_wheel
28+
twine upload --repository pypi dist/*

pydens/model_torch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ def __init__(self, ndims, initial_condition=None, boundary_condition=None, domai
4040
elif isinstance(domain[0], (tuple, list)):
4141
pass
4242
else:
43-
raise ValueError(f'Should be either 1d or 2d-sequence of float/ints.')
43+
raise ValueError('Should be either 1d or 2d-sequence of float/ints.')
4444
else:
45-
raise ValueError(f'Should be either 1d or 2d-sequence of float/ints.')
45+
raise ValueError('Should be either 1d or 2d-sequence of float/ints.')
4646
self.domain = domain
4747

4848
# Initialize trainable variables for anzatc-trasform to bind initial

0 commit comments

Comments
 (0)