Skip to content

Commit e778023

Browse files
committed
Add PyCDFpp package
1 parent 9e31340 commit e778023

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

packages/pycdfpp/meta.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package:
2+
name: pycdfpp
3+
version: 0.8.5
4+
top-level:
5+
- pycdfpp
6+
source:
7+
url: https://files.pythonhosted.org/packages/37/08/2b352c2c04028465a242b7fdca069718f235033d423e8c27f77623fe53ec/pycdfpp-0.8.5.tar.gz
8+
sha256: 6f9116f0446fe5e9d32234ee447e52c564db20055d89576b6d6f3119007d481e
9+
requirements:
10+
run:
11+
- numpy
12+
- pyyaml
13+
about:
14+
home: https://github.com/SciQLop/CDFpp
15+
PyPI: https://pypi.org/project/pycdfpp
16+
summary: "A modern C++ header only cdf library with Python bindings"
17+
license: MIT
18+
extra:
19+
recipe-maintainers:
20+
- jeandet
Binary file not shown.

packages/pycdfpp/test_pycdfpp.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from pytest_pyodide import run_in_pyodide
2+
import pathlib
3+
4+
DATA_PATH = pathlib.Path(__file__).parent / "test_data"
5+
6+
7+
@run_in_pyodide(packages=["pycdfpp"])
8+
def test_pycdfpp(selenium):
9+
import pycdfpp
10+
cdf = pycdfpp.load(f"{DATA_PATH / 'mms1_asp1_srvy_l1b_beam_00000000_v01.cdf'}")
11+
assert 'mms1_asp_epoch' in cdf
12+

0 commit comments

Comments
 (0)