Skip to content

Commit dcb5b22

Browse files
committed
correct XML read
1 parent 96fa5be commit dcb5b22

5 files changed

Lines changed: 37 additions & 38 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
name: ci
2-
3-
on:
4-
push:
5-
paths:
6-
- "**.py"
7-
- ".github/workflows/ci.yml"
8-
pull_request:
9-
10-
11-
jobs:
12-
13-
linux:
14-
runs-on: ubuntu-latest
15-
timeout-minutes: 5
16-
strategy:
17-
matrix:
18-
python-version: [ '3.11' ]
19-
20-
name: Python ${{ matrix.python-version }}
21-
22-
steps:
23-
- uses: actions/checkout@v6
24-
25-
- uses: actions/setup-python@v6
26-
with:
27-
python-version: ${{ matrix.python-version }}
28-
29-
- run: pip install .[tests]
30-
31-
- run: mypy --install-types --non-interactive
32-
33-
# - run: pytest
1+
name: ci
2+
3+
on:
4+
push:
5+
paths:
6+
- "**.py"
7+
- ".github/workflows/ci.yml"
8+
pull_request:
9+
10+
11+
jobs:
12+
13+
linux:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 5
16+
strategy:
17+
matrix:
18+
python-version: [ '3.11' ]
19+
20+
name: Python ${{ matrix.python-version }}
21+
22+
steps:
23+
- uses: actions/checkout@v6
24+
25+
- uses: actions/setup-python@v6
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
29+
- run: pip install .[tests]
30+
31+
- run: mypy --install-types --non-interactive
32+
33+
- run: pytest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![DOI](https://zenodo.org/badge/30336524.svg)](https://zenodo.org/badge/latestdoi/30336524)
44
[![PyPI versions](https://img.shields.io/pypi/pyversions/histutils.svg)](https://pypi.python.org/pypi/histutils)
5-
[![PyPI Download stats](http://pepy.tech/badge/histutils)](http://pepy.tech/project/histutils)
5+
[![PyPI Download stats](https://pepy.tech/badge/histutils)](https://pepy.tech/project/histutils)
66

77
HiST project raw video data reading utilities.
88

src/histutils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from .utils import splitconf, write_quota, sixteen2eight
88
from .index import req2frame, getRawInd, meta2rawInd
9-
from .io import setupimgh5
9+
from .dio import setupimgh5
1010

1111
__all__ = [
1212
"splitconf",

src/histutils/hstxmlparse.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ def xmlparam(fn: Path) -> Dict[str, Any]:
3131
tree = ET.parse(fn)
3232

3333
root = tree.getroot()
34-
35-
children = root.getchildren() # type: ignore[attr-defined]
34+
children = list(root)
3635

3736
data = children[1]
3837

src/histutils/rawDMCreader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#
1515
from .utils import write_quota
16-
from .io import imgwriteincr, setupimgh5
16+
from .dio import imgwriteincr, setupimgh5
1717
from .index import getRawInd, meta2rawInd, req2frame
1818
from .timedmc import frame2ut1, ut12frame
1919

0 commit comments

Comments
 (0)