Skip to content

Commit f07367d

Browse files
committed
Merge remote-tracking branch 'origin/main' into pr/KevinShuman/575
This merge to fix issues with numpy.in1d, transfer_tests.py, and update gitignore
2 parents 1dae040 + 9413047 commit f07367d

File tree

16 files changed

+2127
-956
lines changed

16 files changed

+2127
-956
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@ jobs:
3636
shell: bash -l {0}
3737
run: coverage run -m pytest -c pyproject.toml
3838
- name: Display report
39+
if: always() && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
3940
shell: bash -l {0}
4041
run: coverage report -i
4142
- name: Create coverage report
43+
if: always() && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
4244
shell: bash -l {0}
4345
run: |
4446
coverage xml -i
4547
- name: Upload coverage report to Codecov
46-
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
48+
if: always() && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
4749
uses: codecov/codecov-action@v4
4850
with:
4951
file: ./coverage.xml

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ ipython_config.py
8787
__pypackages__/
8888

8989
# Environments
90-
.env
91-
.venv
92-
env/
93-
venv/
90+
.env*
91+
.venv*
92+
env*/
93+
venv*/
9494
ENV/
9595
env.bak/
9696
venv.bak/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![NSF-2126413](https://img.shields.io/badge/NSF-2126413-blue.svg)](https://nsf.gov/awardsearch/showAward?AWD_ID=2126413)
88
[![Zenodo DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11081647.svg)](https://doi.org/10.5281/zenodo.11081647)
99
[![JOSS DOI](https://joss.theoj.org/papers/10.21105/joss.06742/status.svg)](https://doi.org/10.21105/joss.06742)
10-
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FCloud-Drift%2Fclouddrift&count_bg=%2368C563&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com)
10+
![View count](https://hitscounter.dev/api/hit?url=https%3A%2F%2Fgithub.com%2FCloud-Drift%2Fclouddrift&label=Visit&icon=github&color=%236ea8fe&message=&style=flat&tz=UTC)
1111

1212
### 📦 Distributions
1313
[![Available on conda-forge](https://anaconda.org/conda-forge/clouddrift/badges/version.svg?style=flat-square)](https://anaconda.org/conda-forge/clouddrift/)

clouddrift/adapters/gdp/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"drogue_lost_date",
4343
"typedeath",
4444
"typebuoy",
45-
"location_type",
4645
"DeployingShip",
4746
"DeploymentStatus",
4847
"BuoyTypeManufacturer",
@@ -53,7 +52,6 @@
5352
"Transmissions",
5453
"DeployingCountry",
5554
"DeploymentComments",
56-
"ManufactureYear",
5755
"ManufactureMonth",
5856
"ManufactureSensorType",
5957
"ManufactureVoltage",
@@ -187,7 +185,7 @@ def order_by_date(df: pd.DataFrame, idx: list[int]) -> list[int]: # noqa: F821
187185
idx : list
188186
Unique set of drifter IDs sorted by their start date.
189187
"""
190-
return df.ID[np.where(np.in1d(df.ID, idx))[0]].values # type: ignore
188+
return df.ID[np.where(np.isin(df.ID, idx))[0]].values # type: ignore
191189

192190

193191
def fetch_netcdf(url: str, file: str):

0 commit comments

Comments
 (0)