Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
fd20d1d
use pyproject.toml
ssolson May 19, 2025
6e22f4c
black
ssolson May 19, 2025
6db1515
dynamic version
ssolson May 19, 2025
e086196
dynamic = ["version"]
ssolson May 19, 2025
09a78ac
install module specific dependencies
ssolson May 20, 2025
cff7366
pip install with all
ssolson May 28, 2025
f62ee78
example dependencies setup
ssolson May 28, 2025
8e794be
coverage, coveralls
ssolson May 28, 2025
82232d6
pylint to dev env
ssolson May 28, 2025
aabffba
".[all+dev]"
ssolson May 28, 2025
207c1d4
".[all+dev]"
ssolson May 28, 2025
946e527
[all,dev]
ssolson May 29, 2025
19745ab
try except request with retry
ssolson May 30, 2025
8827327
simplify optional dependencies
ssolson Jun 5, 2025
592d650
add a pip opt deps test for each module
ssolson Jun 5, 2025
28e0d51
fix pip deps needs field
ssolson Jun 5, 2025
68b95fd
adjust pip needs field
ssolson Jun 5, 2025
8c7423a
remove hindcast artifact downloads
ssolson Jun 5, 2025
63f69d9
add bottleneck and lxml
ssolson Jun 5, 2025
b8d05fd
add cartopy to river
ssolson Jun 5, 2025
2cad0aa
cartopy => loads, mooring
ssolson Jun 6, 2025
3814020
lazy import modules for optional pip dependecies
ssolson Jun 6, 2025
865d58f
remove cartopy from river, loads, mooring
ssolson Jun 6, 2025
02171f1
lazy load cartopy in dolfyn discharge
ssolson Jun 9, 2025
7b44d89
try increasing usgs time
ssolson Jun 9, 2025
70609a2
Merge branch 'develop' of https://github.com/MHKiT-Software/MHKiT-Pyt…
ssolson Jul 1, 2025
bbb789c
remove qc module from test bc no specific mhkit tests
ssolson Jul 1, 2025
eabed6f
improve the lazy load error message
ssolson Jul 2, 2025
0e03da5
clean up error message more
ssolson Jul 2, 2025
34030a6
remove fstring on non variable strings
ssolson Jul 2, 2025
509b403
delete the deps test script
ssolson Jul 2, 2025
6125357
minor change to logic in mhkit/__init__.py
akeeste Jul 15, 2025
614bc60
rework mhkit init error messages
akeeste Jul 15, 2025
11ac941
make pecos a core dependency
akeeste Jul 15, 2025
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
6 changes: 3 additions & 3 deletions mhkit/acoustics/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def plot_spectrogram(
fmax: int = 100000,
fig: plt.figure = None,
ax: plt.Axes = None,
**kwargs
**kwargs,
) -> Tuple[plt.figure, plt.Axes]:
"""
Plots the spectrogram of the sound pressure spectral density level.
Expand Down Expand Up @@ -86,7 +86,7 @@ def plot_spectrogram(
spsdl[freq].values,
spsdl.transpose(freq, time),
shading="nearest",
**kwargs
**kwargs,
)
fig.colorbar(h, ax=ax, label=getattr(spsdl, "units", None))
ax.set(ylim=(fmin, fmax), xlabel="Time", ylabel="Frequency [Hz]")
Expand All @@ -100,7 +100,7 @@ def plot_spectra(
fmax: int = 100000,
fig: plt.figure = None,
ax: plt.Axes = None,
**kwargs
**kwargs,
) -> Tuple[plt.figure, plt.Axes]:
"""
Plots spectral density. X axis is log-transformed.
Expand Down
62 changes: 62 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "mhkit"
version = "0.0.0" # This will be read from __init__.py during build
Comment thread
ssolson marked this conversation as resolved.
Outdated
description = "Marine and Hydrokinetic Toolkit"
readme = "README.md"
authors = [
{name = "MHKiT developers"}
]
license = {text = "Revised BSD"}
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
]
requires-python = ">=3.10"
dependencies = [
"numpy>=2.0.0",
"pandas>=2.2.2",
"scipy>=1.14.0",
"xarray>=2024.6.0",
"matplotlib>=3.9.1",
"scikit-learn>=1.5.1",
"h5py>=3.11.0",
"h5pyd>=0.18.0",
"netCDF4>=1.7.1.post1",
"statsmodels>=0.14.2",
"requests",
"pecos>=0.3.0",
"fatpack",
"NREL-rex>=0.2.63",
"pytz",
"beautifulsoup4",
"numexpr>=2.10.0",
"lxml",
"bottleneck",
"cartopy",
]

[project.urls]
Homepage = "https://github.com/MHKiT-Software/mhkit-python"
Documentation = "https://mhkit-software.github.io/MHKiT"

[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pre-commit",
]

[tool.setuptools]
packages = ["mhkit"]
zip-safe = false
include-package-data = true

[tool.setuptools.dynamic]
version = {attr = "mhkit.__version__"}
20 changes: 0 additions & 20 deletions requirements.txt

This file was deleted.

101 changes: 0 additions & 101 deletions setup.py

This file was deleted.

Loading