Skip to content

Commit

Permalink
More path_to_features debugging in scope-test
Browse files Browse the repository at this point in the history
  • Loading branch information
bfhealy committed Feb 23, 2024
1 parent e4f7325 commit a707f0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doc/developer.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ Run `scope-test` to test your installation. Note that for the test to pass, you
Upon encountering installation/testing errors, manually install the package in question using `conda install xxx` , and remove it from `.requirements/dev.txt`. After that, re-run `pip install -r requirements.txt` to continue.

#### Known issues
- Across all platforms, we are currently aware of `scope` dependency issues with Python 3.11.
- If using GPU-accelerated period-finding algorithms for feature generation, you will need to install [periodfind](https://github.com/ZwickyTransientFacility/periodfind) separately from the source.
- Across all platforms, we are currently aware of `scope` dependency issues with Python 3.12.
- Anaconda continues to cause problems with environment setup.
- Using `pip` to install `healpy` on an arm64 Mac can raise an error upon import. We recommend including `h5py` as a requirement during the creation of your `conda` environment.
- On Windows machines, `healpy` and `cesium` raise errors upon installation.
Expand Down
7 changes: 5 additions & 2 deletions scope/scope_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -2592,8 +2592,11 @@ def test(self, doGPU=False):
save=False,
)

testpath = pathlib.Path(outfile)
testpath = testpath.parent.parent
if path_to_features is None:
testpath = pathlib.Path(outfile)
testpath = testpath.parent.parent
else:
testpath = pathlib.Path(path_to_features) / "features"
# Use 'field_0' as test directory to avoid removing any existing data locally
testpath_features = testpath / "field_0"

Expand Down

0 comments on commit a707f0d

Please sign in to comment.