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 Dec 2, 2024
1 parent b58a27b commit 76e8a07
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ioos_qc/argo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import logging
import warnings
from collections.abc import Sequence
from numbers import Real as N
from typing import Sequence

import numpy as np

Expand Down
3 changes: 2 additions & 1 deletion ioos_qc/axds.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

import logging
from collections import namedtuple
from typing import Sequence, Tuple
from collections.abc import Sequence
from typing import Tuple

import numpy as np

Expand Down
4 changes: 2 additions & 2 deletions ioos_qc/config_creator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
)

__all__ = [
"QC_CONFIG_CREATOR_SCHEMA",
"VARIABLE_CONFIG_SCHEMA",
"CreatorConfig",
"QcConfigCreator",
"QcVariableConfig",
"QC_CONFIG_CREATOR_SCHEMA",
"VARIABLE_CONFIG_SCHEMA",
]
3 changes: 2 additions & 1 deletion ioos_qc/qartod.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
import logging
import warnings
from collections import namedtuple
from collections.abc import Sequence
from numbers import Real as N
from typing import Dict, List, Optional, Sequence, Tuple, Union
from typing import Dict, List, Optional, Tuple, Union

import numpy as np
import pandas as pd
Expand Down
3 changes: 1 addition & 2 deletions ioos_qc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ def check_timestamps(
return not (
not np.array_equal(time_diff, sort_diff)
or np.any(sort_diff == zero)
or max_time_interval is not None
and np.any(sort_diff > max_time_interval)
or (max_time_interval is not None and np.any(sort_diff > max_time_interval))
)


Expand Down

0 comments on commit 76e8a07

Please sign in to comment.