Skip to content

Commit bc92003

Browse files
authored
Merge pull request #557 from kitzeslab/develop
v0.7.1
2 parents 4a55a73 + 7308a12 commit bc92003

39 files changed

+2852
-2225
lines changed

.github/workflows/poetry.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
- name: Install ffmpeg v4
2424
run: sudo snap install ffmpeg
2525
- name: Install poetry
26-
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
26+
run: curl -sSL https://install.python-poetry.org | python
2727
- name: Poetry install
28-
run: ~/.poetry/bin/poetry install
28+
run: /home/runner/.local/bin/poetry install
2929
- name: Poetry run pytest
30-
run: ~/.poetry/bin/poetry run pytest
30+
run: /home/runner/.local/bin/poetry run pytest
3131
- name: Poetry run black check
32-
run: ~/.poetry/bin/poetry run black . --check --diff
32+
run: /home/runner/.local/bin/poetry run black . --check --diff

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ doc/_build/
77
*.ipynb_checkpoints/
88
*.DS_Store
99
docs/tutorials/woodcock_labeled_data
10+
.vscode

.pre-commit-config.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: 19.3b0
2+
- repo: https://github.com/psf/black
3+
rev: 22.8.0
44
hooks:
5-
- id: black
5+
- id: black
6+
# It is recommended to specify the latest version of Python
7+
# supported by your project here, or alternatively use
8+
# pre-commit's default_language_version, see
9+
# https://pre-commit.com/#top_level-default_language_version
10+
# language_version: python3.9

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ OpenSoundscape is currently in active development. If you find a bug, please sub
1212

1313
#### Suggested Citation
1414
```
15-
Lapp, Rhinehart, Freeland-Haynes, Khilnani, and Kitzes, 2022. "OpenSoundscape v0.7.0".
15+
Lapp, Rhinehart, Freeland-Haynes, Khilnani, Syunkova, and Kitzes, 2022. "OpenSoundscape v0.7.1".
1616
```
1717

1818
# Installation
1919

20-
OpenSoundscape can be installed on Windows, Mac, and Linux machines. It has been tested on Python 3.7 and 3.8.
20+
OpenSoundscape can be installed on Windows, Mac, and Linux machines. It has been tested on Python 3.7 and 3.8. However, for Apple Silicon (M1 chip) users, Python 3.9 is recommended and may be required to avoid dependency issues.
2121

22-
Most users should install OpenSoundscape via pip: `pip install opensoundscape==0.7.0`. Contributors and advanced users can also use Poetry to install OpenSoundscape.
22+
Most users should install OpenSoundscape via pip: `pip install opensoundscape==0.7.1`. Contributors and advanced users can also use Poetry to install OpenSoundscape.
2323

2424
For more detailed instructions on how to install OpenSoundscape and use it in Jupyter, see the [documentation](http://opensoundscape.org).
2525

docs/api/modules.rst

+6
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ Data Selection
6060
.. automodule:: opensoundscape.data_selection
6161
:members:
6262

63+
Datasets
64+
^^^^^^^^
65+
66+
.. automodule:: opensoundscape.torch.datasets
67+
:members:
68+
6369

6470
Grad Cam
6571
^^^^^^^^

docs/conf.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
# -- Project information -----------------------------------------------------
2323

2424
project = "opensoundscape"
25-
copyright = "2022 Sam Lapp, Tessa Rhinehart, Louis Freeland-Haynes, Justin Kitzes"
26-
author = "Sam Lapp, Tessa Rhinehart, Louis Freeland-Haynes, Justin Kitzes"
25+
copyright = "2022 Sam Lapp, Tessa Rhinehart, Louis Freeland-Haynes, Jatin Khilnani, Alexandra Syunkova, Justin Kitzes"
26+
author = "Sam Lapp, Tessa Rhinehart, Louis Freeland-Haynes, Jatin Khilnani, Alexandra Syunkova, Justin Kitzes"
2727

2828
# The full version, including alpha/beta/rc tags
29-
release = "0.7.0"
29+
release = "0.7.1"
3030

3131

3232
# -- General configuration ---------------------------------------------------

docs/installation/mac_and_linux.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Mac and Linux
22

3-
OpenSoundscape can be installed on Mac and Linux machines with Python 3.7 (or 3.8) using the pip command `pip install opensoundscape==0.7.0`. We recommend installing OpenSoundscape in a virtual environment to prevent dependency conflicts.
3+
OpenSoundscape can be installed on Mac and Linux machines with Python 3.7 (or 3.8) using the pip command `pip install opensoundscape==0.7.1`. We recommend installing OpenSoundscape in a virtual environment to prevent dependency conflicts.
44

55
Below are instructions for installation with two package managers:
66
* `conda`: Python and package management through Anaconda, a package manager popular among scientific programmers
@@ -15,7 +15,7 @@ Feel free to use another virtual environment manager (e.g. `virtualenvwrapper`)
1515
* follow the [installation instructions](https://docs.anaconda.com/anaconda/install/) for your operating system.
1616
* Create a Python 3.7 (or 3.8) conda environment for opensoundscape: `conda create --name opensoundscape pip python=3.7`
1717
* Activate the environment: `conda activate opensoundscape`
18-
* Install opensoundscape using pip: `pip install opensoundscape==0.7.0`
18+
* Install opensoundscape using pip: `pip install opensoundscape==0.7.1`
1919
* Deactivate the environment when you're done using it: `conda deactivate`
2020

2121
## Installation via `venv`
@@ -29,7 +29,7 @@ Run the following commands in your bash terminal:
2929
* Make a directory for virtual environments and `cd` into it: `mkdir .venv && cd .venv`
3030
* Create an environment called `opensoundscape` in the directory: `python3 -m venv opensoundscape`
3131
* Activate/use the environment: `source opensoundscape/bin/activate`
32-
* Install OpenSoundscape in the environment: `pip install opensoundscape==0.7.0`
32+
* Install OpenSoundscape in the environment: `pip install opensoundscape==0.7.1`
3333
* Once you are done with OpenSoundscape, deactivate the environment: `deactivate`
3434
* To use the environment again, you will have to refer to absolute path of the virtual environments folder. For instance, if I were on a Mac and created `.venv` inside a directory `/Users/MyFiles/Code` I would activate the virtual environment using: `source /Users/MyFiles/Code/.venv/opensoundscape/bin/activate`
3535

docs/installation/windows.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can now manage packages with `conda`.
5151
## Install OpenSoundscape in virtual environment
5252
- Create a Python 3.7 (or 3.8) conda environment for opensoundscape: `conda create --name opensoundscape pip python=3.7`
5353
- Activate the environment: `conda activate opensoundscape`
54-
- Install opensoundscape using pip: `pip install opensoundscape==0.7.0`
54+
- Install opensoundscape using pip: `pip install opensoundscape==0.7.1`
5555
5656
If you see an error that says "No matching distribution found...", your
5757
best bet is to use these commands to download then install the package:
@@ -64,7 +64,7 @@ pip install .
6464
6565
If you run into this error and you are on a Windows 10 machine:
6666
```
67-
(opensoundscape_environment) username@computername:~$ pip install opensoundscape==0.7.0
67+
(opensoundscape_environment) username@computername:~$ pip install opensoundscape==0.7.1
6868
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f7603c5da90>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/opensoundscape/
6969
```
7070
You may be able to solve it by going to System Settings, searching for “Proxy Settings,” and beneath “Automatic proxy setup,” turning “Automatically detect settings” OFF. Restart your terminal for changes to take effect. Then activate the environment and install OpenSoundscape using pip.

docs/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ ipykernel
33
nbsphinx
44
m2r
55
docutils<0.18
6+
mistune<2.0.0

docs/tutorials/annotation_tutorial.ipynb

+48-47
Large diffs are not rendered by default.

docs/tutorials/audio_and_spectrogram.ipynb

+75-93
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)