Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ Types of Contributions
Report Bugs or Suggest Features
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The best place for this is https://github.com/robaru/bayesian_listener/issues.
The best place for this is https://github.com/robaru/bayesian_listener_package/issues.

Fix Bugs or Implement Features
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Look through https://github.com/robaru/bayesian_listener/issues for bugs or feature request
Look through https://github.com/robaru/bayesian_listener_package/issues for bugs or feature request
and contact us or comment if you are interested in implementing.

Write Documentation
Expand All @@ -32,18 +32,18 @@ articles, and such.
Get Started!
------------

Ready to contribute? Here's how to set up `bayesian_listener` for local development using the command-line interface. Note that several alternative user interfaces exist, e.g., the Git GUI, `GitHub Desktop <https://desktop.github.com/>`_, extensions in `Visual Studio Code <https://code.visualstudio.com/>`_ ...
Ready to contribute? Here's how to set up `bayesian_listener_package` for local development using the command-line interface. Note that several alternative user interfaces exist, e.g., the Git GUI, `GitHub Desktop <https://desktop.github.com/>`_, extensions in `Visual Studio Code <https://code.visualstudio.com/>`_ ...

1. `Fork <https://docs.github.com/en/get-started/quickstart/fork-a-repo/>`_ the `bayesian_listener` repo on GitHub.
2. Clone your fork locally and cd into the bayesian_listener directory::
2. Clone your fork locally and cd into the bayesian_listener_package directory::

$ git clone https://github.com/YOUR_USERNAME/bayesian_listener.git
$ cd bayesian_listener
$ git clone https://github.com/robaru/bayesian_listener_package.git
$ cd bayesian_listener_package

3. Install your local copy into a virtualenv. Assuming you have Anaconda or Miniconda installed, this is how you set up your fork for local development::

$ conda create --name bayesian_listener python
$ conda activate bayesian_listener
$ conda create --name bayesian_listener_package python
$ conda activate bayesian_listener_package
$ pip install -e ".[dev]"

4. Create a branch for local development. Indicate the intention of your branch in its respective name (i.e. `feature/branch-name` or `bugfix/branch-name`)::
Expand Down
7 changes: 4 additions & 3 deletions bayesian_listener/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
__author__ = """Roberto Barumerli, Fabian Brinkmann, Emanuele Zanoni, Anton Hoyer"""
__email__ = 'r.barumerli@imperial.ac.uk'
__version__ = '0.1'
__all__ = [
'BayesianListener'
]

from .bayesian_listener import BayesianListener

from . import metrics
from . import resample
from . import utils

__all__ = [
'BayesianListener'
]

3 changes: 3 additions & 0 deletions bayesian_listener/bayesian_listener.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
The following describes the BayesianListener, which is the core auditory model.
"""
import sofar
import numpy as np
import matplotlib.pyplot as plt
Expand Down
4 changes: 4 additions & 0 deletions bayesian_listener/metrics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
This module contains functions to compute localization errors based on a set
of target and response directions.
"""
import numpy as np

# Shared dictionary to hold metric functions and their metadata
Expand Down
4 changes: 4 additions & 0 deletions bayesian_listener/resample.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
This module contains functions to spatially resample ITD, ILD and spectral
cues.
"""
import numpy as np
import spharpy as sy
import spaudiopy
Expand Down
1 change: 1 addition & 0 deletions bayesian_listener/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""This model contains helpful utility functions."""
import numpy as np
from scipy.signal import butter, hilbert, correlate, lfilter
from math import factorial
Expand Down
12 changes: 8 additions & 4 deletions docs/api_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@
API Reference
=============

The following gives detailed information about all bayesian_listener functions sorted
according to their modules.
The following documents the BayesianListener model along with its additional functions provided in separate modules.

.. toctree::
:maxdepth: 1

classes/bayesian_listener

Modules
-------

.. toctree::
:maxdepth: 1

modules/bayesian_listener

modules/metrics
modules/resample
modules/utils
9 changes: 9 additions & 0 deletions docs/classes/bayesian_listener.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
BayesianListener
=================

.. automodule:: bayesian_listener.bayesian_listener

.. autoclass:: bayesian_listener.BayesianListener
:members:
:undoc-members:
:inherited-members:
7 changes: 0 additions & 7 deletions docs/modules/bayesian_listener.rst

This file was deleted.

8 changes: 8 additions & 0 deletions docs/modules/metrics.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bayesian_listener.metrics
=========================

.. automodule:: bayesian_listener.metrics
:members:
:undoc-members:
:show-inheritance:
:exclude-members:
8 changes: 8 additions & 0 deletions docs/modules/resample.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bayesian_listener.resample
==========================

.. automodule:: bayesian_listener.resample
:members:
:undoc-members:
:show-inheritance:
:exclude-members:
8 changes: 8 additions & 0 deletions docs/modules/utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bayesian_listener.utils
=========================

.. automodule:: bayesian_listener.utils
:members:
:undoc-members:
:show-inheritance:
:exclude-members:
Loading