Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 28, 2024
1 parent 4f2ad00 commit 3547e3a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions parcels/tools/warnings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__all__ = ['FieldSetWarning', 'FileWarning', 'KernelWarning']
__all__ = ["FieldSetWarning", "FileWarning", "KernelWarning"]


class FieldSetWarning(UserWarning):
Expand All @@ -7,16 +7,18 @@ class FieldSetWarning(UserWarning):
These warnings are often caused by issues in the input data dimensions
or options selected when loading data into a FieldSet.
"""

pass


class FileWarning(UserWarning):
"""Warning that is raised when there are issues with input or output files.
These warnings can be related to file chunking, naming, or decoding issues.
Chunking issues in particular may negatively impact performance
Chunking issues in particular may negatively impact performance
(see also https://docs.oceanparcels.org/en/latest/examples/documentation_MPI.html#Chunking-the-FieldSet-with-dask)
"""

pass


Expand All @@ -26,4 +28,5 @@ class KernelWarning(RuntimeWarning):
These warnings often result from issues in the FieldSet or user-defined Kernel
that are passed into the Parcels Kernel loop.
"""

pass

0 comments on commit 3547e3a

Please sign in to comment.