Skip to content

Commit fe786f3

Browse files
authored
Merge pull request #179 from ToFuProject/devel
Prepare 0.0.42
2 parents 88008c7 + ecbd981 commit fe786f3

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.github/workflows/python-testing-matrix.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
strategy:
1818
fail-fast: true
1919
matrix:
20-
os: [ubuntu-latest, windows-latest, macos-latest]
21-
python-version: ["3.8", "3.9", "3.10"]
20+
os: [ubuntu-latest, windows-latest, macos-latest]
21+
python-version: ["3.8", "3.9", "3.10", "3.11"]
2222

2323
steps:
2424
- uses: actions/checkout@v2
@@ -42,4 +42,4 @@ jobs:
4242
pip install -e ".[dev]" # --no-build-isolation
4343
- name: Test with pytest
4444
run: |
45-
pytest datastock/tests -v -x
45+
pytest datastock/tests -v -x

datastock/_class0.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def save(
168168
return_pfe=False,
169169
):
170170

171-
lsep = ['.', '-', '_', ',', ';', '~', '?']
171+
lsep = [';', '&', '?', '#', ',', '~', '.', '-', '_']
172172
if sep is None:
173173
for ss in lsep:
174174
c0 = (

datastock/_class1_check.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,14 @@ def _check_conflicts(dd=None, dd0=None, dd_name=None, returnas=None):
147147
or (
148148
not isinstance(v0[kk], np.ndarray)
149149
and not scpsp.issparse(v0[kk])
150-
and v0[kk] == dd0[k0][kk]
150+
and (
151+
v0[kk] == dd0[k0][kk]
152+
or (
153+
# asunit.Unit vs str should be the same
154+
kk == 'units'
155+
and str(v0[kk]) == str(dd0[k0][kk])
156+
)
157+
)
151158
)
152159
)
153160
)
@@ -1925,4 +1932,4 @@ def _select(dd=None, dd_name=None, log=None, returnas=None, **kwdargs):
19251932
[k0 for jj, k0 in enumerate(dd.keys()) if ind[jj]],
19261933
dtype=str,
19271934
)
1928-
return ind
1935+
return ind

datastock/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Do not edit, pipeline versioning governed by git tags!
2-
__version__ = '0.0.41'
2+
__version__ = '0.0.42'

0 commit comments

Comments
 (0)