Skip to content

Commit

Permalink
Merge pull request #10 from CedMrnl/master
Browse files Browse the repository at this point in the history
Pre-release PR
  • Loading branch information
mglesser authored Apr 12, 2021
2 parents a454a9f + 6630151 commit 16bf3a3
Show file tree
Hide file tree
Showing 23 changed files with 39 additions and 32 deletions.
Empty file added mosqito/classes/__init__.py
Empty file.
Empty file added mosqito/functions/__init__.py
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added mosqito/methods/__init__.py
Empty file.
Empty file added mosqito/tests/Audio/__init__.py
Empty file.
Empty file added mosqito/tests/__init__.py
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
37 changes: 18 additions & 19 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ![MOSQITO Logo](./logo.png) MOSQITO
# ![MOSQITO Logo](https://raw.githubusercontent.com/Eomys/MoSQITo/master/logo.png) MOSQITO

## Background

Expand Down Expand Up @@ -44,32 +44,31 @@ machine simulation software.
Tutorials are available in the [tutorials](./tutorials/) folder. Documentation
and validation of the MOSQITO functions are available in the [documentation](./documentation/) folder.


## Scope

The scope of the project is to implement the following first set of
metrics:

|| Reference | Validated | Available | Under dev. | To do |
|:-|:-|:-:|:-:|:-:|:-:|
|Loudness for<br>steady signals<br>(Zwicker method) | ISO 532B:1975<br>DIN 45631:1991<br>ISO 532-1:2017 §5 | [x](./mosqito/validations/loudness_zwicker/output) | [x](./documentation/loudness-stationary.md) ||
|Loudness for non-stationary<br>(Zwicker method) | DIN 45631/A1:2010<br>ISO 532-1:2017 §6 | [x](./mosqito/validations/loudness_zwicker/output) | [x](./documentation/loudness-time-varying.md) |||
| Roughness | Daniel and Weber, 1997 | [x](./mosqito/validations/roughness_danielweber) | [x](./documentation/roughness.md) |||
| Fluctuation Strength | To be defined |||| x |
| Sharpness | DIN 45692:2009 | [x](./mosqito/validations/sharpness/output) | [x](./documentation/sharpness.md) |||
| Tonality (Hearing model) | ECMA-74:2019 annex G ||| x ||
| | Reference | Validated | Available | Under dev. | To do |
|:-------------------------------------------------- |:---------------------------------------------------- |:--------------------------------------------------:|:---------------------------------------------:|:----------:|:-----:|
| Loudness for<br>steady signals<br>(Zwicker method) | ISO 532B:1975<br>DIN 45631:1991<br>ISO 532-1:2017 §5 | [x](./mosqito/validations/loudness_zwicker/output) | [x](./documentation/loudness-stationary.md) | | |
| Loudness for non-stationary<br>(Zwicker method) | DIN 45631/A1:2010<br>ISO 532-1:2017 §6 | [x](./mosqito/validations/loudness_zwicker/output) | [x](./documentation/loudness-time-varying.md) | | |
| Roughness | Daniel and Weber, 1997 | [x](./mosqito/validations/roughness_danielweber) | [x](./documentation/roughness.md) | | |
| Fluctuation Strength | To be defined | | | | x |
| Sharpness | DIN 45692:2009 | [x](./mosqito/validations/sharpness/output) | [x](./documentation/sharpness.md) | | |
| Tonality (Hearing model) | ECMA-74:2019 annex G | | | x | |

As a second priority, the project could address the following metrics:

|| Reference | Validated | Available | Under dev. | To do |
|:-|:-|:-:|:-:|:-:|:-:|
|Loudness for steady signals<br>(Moore/Glasberg method) | ISO 532-2:2017 ||||x|
|Loudness for non-stationary<br>(Moore/Glasberg method) | Moore, 2014 ||||x|
|Sharpness (using <br>Moore/Glasberg loudness) | Hales-Swift<br>and Gee, 2017 ||||x|
|Tone-to-noise ratio / Prominence <br> ratio (occupational noise,<br>discrete tones) | ECMA-74:2019 annex D<br>ISO 7719:2018 || x|||
|Tone-to-noise ratio<br>(environmental noise,<br>automatic tone detection) | DIN 45681 ||||x|
|Tone-to-noise ratio<br>(environmental noise) | ISO 1996-2 ||||x|
|Tone-to-noise ratio<br>(environmental noise) | ANSI S1.13:2005 ||||x|
| | Reference | Validated | Available | Under dev. | To do |
|:----------------------------------------------------------------------------------- |:------------------------------------- |:---------:|:---------:|:----------:|:-----:|
| Loudness for steady signals<br>(Moore/Glasberg method) | ISO 532-2:2017 | | | | x |
| Loudness for non-stationary<br>(Moore/Glasberg method) | Moore, 2014 | | | | x |
| Sharpness (using <br>Moore/Glasberg loudness) | Hales-Swift<br>and Gee, 2017 | | | | x |
| Tone-to-noise ratio / Prominence <br> ratio (occupational noise,<br>discrete tones) | ECMA-74:2019 annex D<br>ISO 7719:2018 | | x | | |
| Tone-to-noise ratio<br>(environmental noise,<br>automatic tone detection) | DIN 45681 | | | | x |
| Tone-to-noise ratio<br>(environmental noise) | ISO 1996-2 | | | | x |
| Tone-to-noise ratio<br>(environmental noise) | ANSI S1.13:2005 | | | | x |

In parallel, tools for signal listening and manipulation will be
developed. The objective is to be able to apply some modification to a
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ scipy
pytest
matplotlib
pyuff
scidatatool
scidatatool
h5py
cloudpickle
30 changes: 18 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
import setuptools
import platform

# /!\ update before a release
MoSQITo_VERSION = "0.2.0"

# MoSQITo description
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

python_requires = ">= 3.5"

# Pyleecan dependancies
install_requires = [
"setuptools",
"numpy>=1.18.1",
"scipy>=1.4.1",
"matplotlib>=3.1.3",
"pandas",
]
# MoSQITo dependancies
with open("requirements.txt", "r") as file:
requirements = file.readlines()
install_requires = "".join(
requirements
).splitlines() # remove endline in each element

tests_require = ["pytest>=5.4.1"]
tests_require = ["pytest>=5.4.1","pandas", "openpyxl"]

setuptools.setup(
name="mosqito",
version="0.1.0",
version=MoSQITo_VERSION,
author="MoSQITo Developers",
author_email="martin.glesser@eomys.com",
description="Modular Sound Quality Integrated Toolbox",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Eomys/MoSQITo",
download_url="https://github.com/Eomys/MoSQITo/archive/v0.1.0.tar.gz",
download_url="https://github.com/Eomys/MoSQITo/archive/v{}.tar.gz".format(
MoSQITo_VERSION
),
packages=setuptools.find_packages(exclude=["documentation", "tutorials"]),
include_package_data=True,
classifiers=[
Expand All @@ -37,4 +40,7 @@
python_requires=python_requires,
install_requires=install_requires,
tests_require=tests_require,
extras_require={
'testing': tests_require
},
)

0 comments on commit 16bf3a3

Please sign in to comment.