Skip to content

Commit 0ece8ff

Browse files
authored
Merge pull request #160 from Ocean-Data-Lab/final-changes-into-116
Incorporate changes from Don's review of PR#150
2 parents 46f23fa + cf2a373 commit 0ece8ff

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

CITATION.cff

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ authors:
1313
given-names: "Dmitry"
1414
- family-names: "Abadi"
1515
given-names: "Shima"
16+
- family-names: "Dixit"
17+
given-names: "Anish"
1618
title: "OOIPy: A Python toolbox designed to aid in the scientific analysis of Ocean Observatories Initiative (OOI) data"
1719
version: 1.1.3
1820
doi: 10.5281/zenodo.5165389

docs/source/install_instructions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ OOIPY is available on PyPI.
1212

1313
Install Instruction
1414
-------------------
15-
OOIPY is designed to run on Python > 3.7 To install OOIPY, run the following command.
15+
OOIPY is designed to run on Python version 3.9 and above. To install OOIPY, run the following command:
1616

1717
.. code-block :: bash
1818
@@ -34,7 +34,7 @@ How to setup OOIPY development environment
3434

3535
.. code-block :: bash
3636
37-
conda create --name env_name pip
37+
conda create --name env_name python=3.10 pip
3838
3939
3. Activate the environment using this command:
4040

ooipy/hydrophone/basic.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ def compute_spectrogram(
146146
147147
Returns
148148
-------
149-
Spectrogram
150-
An Xarray.DataArray object that contains time and frequency bins as
149+
spectrogram : xr.DataArray
150+
An ``xarray.DataArray`` object that contains time and frequency bins as
151151
well as corresponding values. If no noise date is available,
152152
None is returned.
153153
"""
@@ -305,8 +305,8 @@ def compute_spectrogram_mp(
305305
306306
Returns
307307
-------
308-
Spectrogram
309-
An Xarray.DataArray object that contains time and frequency bins as well
308+
spectrogram : xr.DataArray
309+
An ``xarray.DataArray`` object that contains time and frequency bins as well
310310
as corresponding values. If no noise date is available,
311311
None is returned.
312312
"""
@@ -414,8 +414,8 @@ def compute_psd_welch(
414414
415415
Returns
416416
-------
417-
Psd
418-
An xarray.DataArray object that contains frequency bins and PSD values. If no
417+
psd : xr.DataArray
418+
An ``xarray.DataArray`` object that contains frequency bins and PSD values. If no
419419
noise date is available, None is returned.
420420
"""
421421
# get noise data segment for each entry in rain_event
@@ -589,7 +589,7 @@ def get_asset_ID(self):
589589

590590
return asset_ID
591591

592-
def save(self, file_format, filename, wav_kwargs={}):
592+
def save(self, file_format, filename, wav_kwargs={}) -> None:
593593
"""
594594
save hydrophone data in specified method. Supported methods are:
595595
- pickle - saves the HydrophoneData object as a pickle file

ooipy/request/hydrophone_request.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,10 @@ def __map_concurrency(func, iterator, args=(), max_workers=-1, verbose=False):
517517
with concurrent.futures.ThreadPoolExecutor(max_workers=max_workers) as executor:
518518
# Start the load operations and mark each future with its URL
519519
future_to_url = {executor.submit(func, i, *args): i for i in iterator}
520+
# Disable progress bar
521+
is_disabled = not verbose
520522
for future in tqdm(
521-
concurrent.futures.as_completed(future_to_url), total=len(iterator), disable=not verbose
523+
concurrent.futures.as_completed(future_to_url), total=len(iterator), disable=is_disabled
522524
):
523525
data = future.result()
524526
results.append(data)

0 commit comments

Comments
 (0)