HDFGroup / hsds

Cloud-native, service based access to HDF data
https://www.hdfgroup.org/solutions/hdf-kita/
Apache License 2.0
125 stars 52 forks source link

Enable codespace for hsds #357

Closed jreadey closed 2 months ago

jreadey commented 2 months ago

This PR enables the hsds repo to be open in a github codespace. The test suite (python testall.py) should work when run within the codespace.

mattjala commented 2 months ago

When running the tests from a codespace, the point selection test keeps failing due to an import issue:

pointsel_test
Traceback (most recent call last):
  File "/workspace/tests/integ/pointsel_test.py", line 18, in <module>
    from hsds.util.arrayUtil import arrayToBytes
ModuleNotFoundError: No module named 'hsds'
Failed
jreadey commented 2 months ago

I hadn't setup the codespace environment with the hsds package, so that caused the failure. Seems like this is the only integ test using the hsds package, and it's not really needed anyway. I just replaced the arrayToBytes() call with arr.tobytes() and everything passed.