Skip to content

Commit

Permalink
Merge pull request #817 from thehrh/stage_declare_expected_keys
Browse files Browse the repository at this point in the history
Service transparency and usability: expected data keys, supported representations, unit tests
  • Loading branch information
JanWeldert authored Oct 1, 2024
2 parents dacc631 + 217df0c commit e6bff6e
Show file tree
Hide file tree
Showing 60 changed files with 2,293 additions and 507 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
run: |
pip install pytest
PISA_FTYPE=fp32 PISA_TARGET=cpu MPLBACKEND=agg ./pisa_tests/test_example_pipelines.py -v
- name: Test PISA services, double precision
run: |
PISA_FTYPE=fp64 PISA_TARGET=cpu PISA_RESOURCES=./pisa_examples/resources MPLBACKEND=agg ./pisa_tests/test_services.py -v
- name: Test PISA imports and unit tests, double precision
run: |
pip install pytest
Expand Down
2 changes: 1 addition & 1 deletion pisa/core/bin_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def lookup_indices(sample, binning):
if len(sample) != binning.num_dims:
raise ValueError(
f"`binning` has {binning.num_dims} dimension(s), but `sample`"
f"contains {len(sample)} arrays (so represents {len(sample)}"
f" contains {len(sample)} arrays (so represents {len(sample)}"
f" dimensions)"
)

Expand Down
Loading

0 comments on commit e6bff6e

Please sign in to comment.