Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔍 Data updates to gdp1h, gdp6h adapters and datasets: Issue #523 #533

Closed
wants to merge 5 commits into from
Closed
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
4 changes: 2 additions & 2 deletions clouddrift/adapters/gdp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def str_to_float(value: str, default: float = np.nan) -> float:
return default


def cut_str(value: str, max_length: int) -> np.chararray:
def cut_str(value: str, max_length: int) -> np.chararray: # type: ignore
"""Cut a string to a specific length and return it as a numpy chararray.

Parameters
Expand All @@ -284,7 +284,7 @@ def cut_str(value: str, max_length: int) -> np.chararray:
out : np.chararray
String with max_length characters
"""
charar = np.chararray(1, max_length)
charar = np.chararray(1, max_length) # type: ignore
charar[:max_length] = value
return charar

Expand Down
Loading
Loading