Skip to content

Commit

Permalink
major overhaul for toml conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
initze committed Dec 11, 2024
1 parent 45a57af commit e6c3998
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 1,031 deletions.
2 changes: 1 addition & 1 deletion examples/example_daily_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
author: Ingmar Nitze
"""

from noaaplotter.noaaplotter import NOAAPlotter
from src.noaaplotter import NOAAPlotter
import logging

def main():
Expand Down
2 changes: 1 addition & 1 deletion examples/example_daily_series_winter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
author: Ingmar Nitze
"""

from noaaplotter.noaaplotter import NOAAPlotter
from src.noaaplotter import NOAAPlotter
import logging

def main():
Expand Down
2 changes: 1 addition & 1 deletion examples/example_monthly_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
author: Ingmar Nitze
"""

from noaaplotter.noaaplotter import NOAAPlotter
from src.noaaplotter import NOAAPlotter
import logging

def main():
Expand Down
1 change: 0 additions & 1 deletion noaaplotter/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from noaaplotter import *
382 changes: 0 additions & 382 deletions noaaplotter/dataset.py

This file was deleted.

92 changes: 0 additions & 92 deletions noaaplotter/download_utils.py

This file was deleted.

16 changes: 8 additions & 8 deletions noaaplotter/noaaplotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
# version: 2021-09-06

import numpy as np
from matplotlib import dates

########################
from matplotlib import pyplot as plt, dates
import matplotlib.dates as mdates

from .dataset import NOAAPlotterDailyClimateDataset as DS_daily
from .dataset import NOAAPlotterDailySummariesDataset as Dataset
from .dataset import NOAAPlotterMonthlyClimateDataset as DS_monthly
from .plot_utils import *
from .utils import *
from matplotlib import pyplot as plt

from noaaplotter.utils.dataset import NOAAPlotterDailyClimateDataset as DS_daily
from noaaplotter.utils.dataset import NOAAPlotterDailySummariesDataset as Dataset
from noaaplotter.utils.dataset import NOAAPlotterMonthlyClimateDataset as DS_monthly
from noaaplotter.utils.plot_utils import *
from noaaplotter.utils.utils import *

pd.plotting.register_matplotlib_converters()
numeric_only = True
Expand Down
49 changes: 0 additions & 49 deletions noaaplotter/plot_utils.py

This file was deleted.

110 changes: 0 additions & 110 deletions noaaplotter/utils.py

This file was deleted.

14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=75.0", "wheel"]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
Expand All @@ -9,11 +9,11 @@ description = "Package to plot fancy climate/weather data of NOAA"
authors = [
{ name = "Ingmar Nitze", email = "[email protected]" }
]
license = { text = "" }
readme = "README.md" # Specify a README file if available
# homepage = "https://github.com/initze/noaaplotter"
keywords = ["climate", "weather", "NOAA", "plotting"]

requires-python = ">=3.10"
dependencies = [
"pandas>=2.2",
"numpy>=2.2",
Expand All @@ -25,10 +25,10 @@ dependencies = [
]

[tool.setuptools.packages.find]
where = ["noaaplotter"]
include = ["noaaplotter*"]

[project.scripts]
plot_daily = "scripts.plot_daily:main"
plot_monthly = "scripts.plot_monthly:main"
download_data = "scripts.download_data:main"
download_data_ERA5 = "scripts.download_data_ERA5:main"
plot_daily = "noaaplotter.scripts.plot_daily:main" # Adjust if necessary
plot_monthly = "noaaplotter.scripts.plot_monthly:main" # Adjust if necessary
download_data = "noaaplotter.scripts.download_data:main" # Adjust if necessary
download_data_ERA5 = "noaaplotter.scripts.download_data_ERA5:main" # Adjust if necessary
Loading

0 comments on commit e6c3998

Please sign in to comment.