-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move reference data from test_rxd.py to rxd_data.json. #3143
Conversation
Also added a --save flag to regenerate the data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure the json file is appearing in the installed module?
I was working on this as well (using from neuron.tests.utils.checkresult import Chk
) and can't figure out so far how to install the json file
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears that the following can be used to install the json file
$ git diff setup.py
diff --git a/setup.py b/setup.py
index ba0922b27..05e8ca67e 100644
--- a/setup.py
+++ b/setup.py
@@ -500,7 +500,7 @@ def setup_package():
name=package_name,
package_dir={"": NRN_PY_ROOT},
packages=py_packages,
- package_data={"neuron": ["*.dat"]},
+ package_data={"neuron": ["*.dat", "tests/*.json"]},
ext_modules=extensions,
scripts=[
os.path.join(NRN_PY_SCRIPTS, f)
I don't know if that is the best solution. I did not check a wheel build.
✔️ e3c4a1f -> Azure artifacts URL |
Looks like that worked. Thanks |
Quality Gate passedIssues Measures |
✔️ 77f0c6b -> Azure artifacts URL |
@adamjhn @nrnhines : I didn’t check error details but just want to point out that wheel testing is failing : https://app.circleci.com/pipelines/github/neuronsimulator/nrn/9439/workflows/419f7eb5-d63d-4b07-87d4-b7b9ca39f9e5/jobs/4667/parallel-runs/0/steps/0-104 |
@pramodk
Don't know what it means for the CI failure but downgrading numpy on my virtual environment fixed the issue.
The CI failure seems to be for python3.11. With a virtual environment for 3.11.8 and
|
Here's a reproducer dockerfile: FROM ubuntu:22.04
RUN apt-get update && apt-get install -y python3-venv python3-pip wget
# get one of the "broken" wheels for Python 3.10 (they are not on PyPI since CI failed)
# taken from:
# https://app.circleci.com/pipelines/github/neuronsimulator/nrn/9439/workflows/419f7eb5-d63d-4b07-87d4-b7b9ca39f9e5/jobs/4668/artifacts
RUN wget 'https://output.circle-artifacts.com/output/job/76a56ccb-419e-4952-8784-6ea2a95cf62a/artifacts/0/artifacts/NEURON_nightly-9.0a1.dev380-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl'
RUN python3 -m venv env
RUN env/bin/python -m pip install NEURON*.whl
RUN env/bin/python -c 'import neuron; neuron.test_rxd()' Build using
Note that if your underlying platform is x86_64, you need to install QEMU support using: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes |
Just for a permanent record... Thanks @JCGoran ! Because of many false starts some of the below may not be needed. Please edit if some details are misleading.
|
Looks like a similar issue occurs on MacOS as well, at least on arm64: https://github.com/neuronsimulator/nrn/actions/runs/11632330511/job/32395225512?pr=3168#step:7:285 For context, I tried setting up the CI so we can have nightly/release wheels on MacOS on arm, here's the CI file: https://github.com/neuronsimulator/nrn/actions/runs/11632330511/workflow?pr=3168 (Python 3.9 had the same error, and I assume the others would as well if I could figure out how to not cancel the workflow jobs if one of them fail). |
Added --save flag to regenerate test data.