Skip to content

Commit

Permalink
reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
Yann-Treden Tranchant committed Oct 20, 2023
1 parent 2f1f402 commit e5fe8b9
Show file tree
Hide file tree
Showing 29 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# serve to show the default.


import utide2D
import utide

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -57,7 +57,7 @@
# |version| and |release|, also used in various other places throughout the
# built documents.

version = release = utide2D.__version__
version = release = utide.__version__


# The language for content autogenerated by Sphinx. Refer to documentation
Expand Down
12 changes: 6 additions & 6 deletions tests/test_HNL.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import pytest
from numpy.testing import assert_array_almost_equal, assert_array_equal

import utide2D
from utide2D.utilities import Bunch, convert_unicode_arrays, loadbunch
import utide
from utide.utilities import Bunch, convert_unicode_arrays, loadbunch

thisdir = os.path.dirname(__file__)
datapath = os.path.join(thisdir, "data")
Expand All @@ -23,13 +23,13 @@
"conf_int": "linear",
}

coef_all = utide2D.solve(t, h, **solve_kw)
coef_all = utide.solve(t, h, **solve_kw)

sl_month = slice(24 * 31)
coef_month = utide2D.solve(t[sl_month], h[sl_month], **solve_kw)
coef_month = utide.solve(t[sl_month], h[sl_month], **solve_kw)

sl_week = slice(24 * 7)
coef_week = utide2D.solve(t[sl_week], h[sl_week], **solve_kw)
coef_week = utide.solve(t[sl_week], h[sl_week], **solve_kw)

month_index_dict = dict({(name.strip(), i) for i, name in enumerate(coef_month.name)})
infer = Bunch()
Expand All @@ -42,7 +42,7 @@
infer.amp_ratios.append(coef_month.A[iinf] / coef_month.A[iref])
infer.phase_offsets.append(coef_month.g[iref] - coef_month.g[iinf])

coef_week_inf = utide2D.solve(t[sl_week], h[sl_week], infer=infer, **solve_kw)
coef_week_inf = utide.solve(t[sl_week], h[sl_week], infer=infer, **solve_kw)

runs = [
(coef_all, "HNL2010.mat"),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_astron.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""
import numpy as np

from utide2D.astronomy import ut_astron
from utide.astronomy import ut_astron


def test_astron():
Expand Down
6 changes: 3 additions & 3 deletions tests/test_harmonics.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

from numpy.testing import assert_array_almost_equal

from utide2D._ut_constants import _base_dir
from utide2D.harmonics import FUV
from utide2D.utilities import loadbunch
from utide._ut_constants import _base_dir
from utide.harmonics import FUV
from utide.utilities import loadbunch

fname = os.path.join(_base_dir, "FUV0.npz")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
import pandas as pd

from utide2D._time_conversion import _date2num, _normalize_time
from utide._time_conversion import _date2num, _normalize_time


def test_formats():
Expand Down
4 changes: 2 additions & 2 deletions tests/test_order_constit.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import numpy as np
import pytest

from utide2D import reconstruct, solve
from utide2D._ut_constants import constit_index_dict, ut_constants
from utide import reconstruct, solve
from utide._ut_constants import constit_index_dict, ut_constants

ts = 735604
duration = 35
Expand Down
2 changes: 1 addition & 1 deletion tests/test_periodogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
import numpy as np

import utide2D.periodogram as pgram
import utide.periodogram as pgram


def random_ts(ndays, dt_hours, is_complex=True):
Expand Down
6 changes: 3 additions & 3 deletions tests/test_solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import numpy as np
import pytest

from utide2D import reconstruct, solve
from utide2D._ut_constants import ut_constants
from utide2D.utilities import Bunch
from utide import reconstruct, solve
from utide._ut_constants import ut_constants
from utide.utilities import Bunch

ts = 735604
duration = 35
Expand Down
4 changes: 2 additions & 2 deletions tests/test_uv.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import pytest
from pandas import date_range

from utide2D import reconstruct, solve
from utide2D.utilities import Bunch
from utide import reconstruct, solve
from utide.utilities import Bunch


def _fake_tide(t, M2amp, M2phase):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions utide2D/confidence.py → utide/confidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

import numpy as np

from utide2D.ellipse_params import ut_cs2cep
from utide2D.periodogram import band_psd
from utide2D.utilities import complex_interp
from utide.ellipse_params import ut_cs2cep
from utide.periodogram import band_psd
from utide.utilities import complex_interp


def band_averaged_psd_by_constit(tin, t, e, elor, coef, opt):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion utide2D/data/mat2npz.py → utide/data/mat2npz.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy as np

from utide2D.utilities import loadbunch
from utide.utilities import loadbunch

datadir = os.path.join(os.path.dirname(__file__))

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion utide2D/periodogram.py → utide/periodogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import numpy as np
from scipy import signal

from utide2D.utilities import Bunch
from utide.utilities import Bunch

# __all__ = ['freq_bands', 'band_psd']

Expand Down
2 changes: 1 addition & 1 deletion utide2D/robustfit.py → utide/robustfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import numpy as np

from utide2D.utilities import Bunch
from utide.utilities import Bunch


# Weighting functions:
Expand Down
File renamed without changes.

0 comments on commit e5fe8b9

Please sign in to comment.