Skip to content

Commit

Permalink
[tests] refactored tests according to @pmav99 reviews (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsail committed Jan 14, 2024
1 parent 5c00b68 commit 0f3e54c
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 26 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions tests/detide_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@
from analysea.tide import detide
from analysea.utils import cleanup

# UTIDE analysis options
OPTS = {
"conf_int": "linear",
"constit": "auto",
"method": "ols", # ols is faster and good for missing data (Ponchaut et al., 2001)
"order_constit": "frequency",
"Rayleigh_min": 0.97,
"lat": None,
"verbose": False,
} # careful if there is only one Nan parameter, the analysis crashes


def detide_test():
start = pd.Timestamp("2020-01-01")
Expand Down
15 changes: 0 additions & 15 deletions tests/yearly_tide_coef_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@
from analysea.tide import yearly_tide_analysis
from analysea.utils import cleanup

# UTIDE analysis options
OPTS = {
"conf_int": "linear",
"constit": "auto",
"method": "ols", # ols is faster and good for missing data (Ponchaut et al., 2001)
"order_constit": "frequency",
"Rayleigh_min": 0.97,
"lat": None,
"verbose": False,
} # careful if there is only one Nan parameter, the analysis crashes


def yearly_tide_test():
start = pd.Timestamp("2020-01-01")
Expand All @@ -32,7 +21,3 @@ def yearly_tide_test():
clean = cleanup(raw)

tide, surge, coefs, years = yearly_tide_analysis(clean, lat=16, verbose=False) # acapulco latitude
print(tide.head(), surge.head(), coefs, years)


yearly_tide_test()

0 comments on commit 0f3e54c

Please sign in to comment.