Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions packages/pycdfpp/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package:
name: pycdfpp
version: 0.8.5
top-level:
- pycdfpp
source:
url: https://files.pythonhosted.org/packages/37/08/2b352c2c04028465a242b7fdca069718f235033d423e8c27f77623fe53ec/pycdfpp-0.8.5.tar.gz
sha256: 6f9116f0446fe5e9d32234ee447e52c564db20055d89576b6d6f3119007d481e
requirements:
run:
- numpy
- pyyaml
about:
home: https://github.com/SciQLop/CDFpp
PyPI: https://pypi.org/project/pycdfpp
summary: "A modern C++ header only cdf library with Python bindings"
license: MIT
extra:
recipe-maintainers:
- jeandet
Binary file not shown.
13 changes: 13 additions & 0 deletions packages/pycdfpp/test_pycdfpp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from pytest_pyodide import run_in_pyodide
from pytest_pyodide.decorator import copy_files_to_pyodide
import pathlib


_FILE_PATH = str(pathlib.Path(__file__).parent / "test_data" / "mms1_asp1_srvy_l1b_beam_00000000_v01.cdf")

@copy_files_to_pyodide(file_list=[(_FILE_PATH,"mms1_asp1_srvy_l1b_beam_00000000_v01.cdf")])
@run_in_pyodide(packages=["pycdfpp"])
def test_pycdfpp(selenium):
import pycdfpp
cdf = pycdfpp.load("mms1_asp1_srvy_l1b_beam_00000000_v01.cdf")
assert 'mms1_asp_epoch' in cdf