Skip to content

Commit

Permalink
Merge pull request #840 from kir0ul/issue_817_chan2_nwb
Browse files Browse the repository at this point in the history
Improve NWB support
  • Loading branch information
chriski777 authored Aug 28, 2022
2 parents 40b534d + 7668607 commit 8d2c099
Show file tree
Hide file tree
Showing 5 changed files with 452 additions and 260 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ The software has been heavily tested on Windows 10 and Ubuntu 18.04, and less we
2. Run `conda env create --name suite2p`
3. To activate this new environment, run `conda activate suite2p` (you will have to activate every time you want to run suite2p)
4. Install the local version of suite2p into this environment in develop mode with the command `pip install -e .`
5. Run tests: `python setup.py test` or `pytest tests\`, this will automatically download the test data into your `suite2p` folder. The test data is split into two parts: test inputs and expected test outputs which will be downloaded in `data/test_inputs` and `data/test_outputs` respectively. The .zip files for these two parts can be downloaded from these links: [test_inputs](https://www.suite2p.org/static/test_data/test_inputs.zip) and [test_outputs](https://www.suite2p.org/static/test_data/test_outputs.zip).
5. Run tests: `python setup.py test` or `pytest -vs`, this will automatically download the test data into your `suite2p` folder. The test data is split into two parts: test inputs and expected test outputs which will be downloaded in `data/test_inputs` and `data/test_outputs` respectively. The .zip files for these two parts can be downloaded from these links: [test_inputs](https://www.suite2p.org/static/test_data/test_inputs.zip) and [test_outputs](https://www.suite2p.org/static/test_data/test_outputs.zip).

## Examples

Expand Down
1 change: 1 addition & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def download_url_to_file(url, dst, progress=True):
dst = os.path.expanduser(dst)
dst_dir = os.path.dirname(dst)
f = tempfile.NamedTemporaryFile(delete=False, dir=dst_dir)
print(f"\nDownloading: {url}")
try:
with tqdm(total=file_size, disable=not progress,
unit='B', unit_scale=True, unit_divisor=1024) as pbar:
Expand Down
Loading

0 comments on commit 8d2c099

Please sign in to comment.