Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupak committed Aug 19, 2024
1 parent 6a8884c commit 2488d9c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
2 changes: 2 additions & 0 deletions BUILD.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ The IMOS passive audio tools library is wrapped in a python package named IMOSPA
from IMOSPATools import ...
.. ::

(See `dat2wav.py <scripts/dat2wav.py>`_.)

16 changes: 13 additions & 3 deletions doc/Documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,17 @@ Commandline tools

* inspect_audio_record.py
commandline script that read the wav or flac file
and prints various information on the data recorrd,
and prints various information on the data record,
including IMOS meta data (if included in the file).

Testing
-------
Automated end-to-end integration test using pytest is included in the github repo.
All test* functions in code modules matching pattern test*.py in sub-folder 'tests'
are automatically executed in Python 3.8.latest and 3.9.latest on Github when
git push or pull request actions are taken.
git push or pull request actions are taken. This is implemented as github action,
and the tests run in the free github cloud. The same test can be executed locally
as well, by running 'pytest' in the root of this github repoitory.

Verification
------------
Expand All @@ -97,6 +99,14 @@ calibration module are used to verify the correctness of the calibration, compar
to the product of the reference implementation. The comparison is done at the stage
of normalised calibrated signal.

Metadata
--------
Example of metadata written to the output files:

.. code-block::
{'setID': '3154', 'schedule': '2012-08-17 02:45:01.322479', 'numChannels': '1', 'sampleRate': '6000.0', 'durationHeader': '300.0', 'durationFile': '307.0373333333333', 'startTime': '2012-08-17 02:45:01.337646', 'endTime': '2012-08-17 02:50:08.374979', 'calibNoiseLevel': '0.0', 'hydrophoneSensitivity': '-197.8', 'scaleFactor': '10000000.0'}
.. ::

Technical notes
----------------

Expand All @@ -116,5 +126,5 @@ ensures that no numerical residuals of complex component need to be explicitly r
from the product of inverse FFT.

Based on consultation with an expert who has extensive experience with the actual dataset,
this library supports only single channel passive audio records - simple because there are
this library supports only single channel passive audio records - simply because there are
no multi channel data files.

0 comments on commit 2488d9c

Please sign in to comment.