Skip to content

Commit

Permalink
Bump min py >= 3.9 and pin dependencies max (#93)
Browse files Browse the repository at this point in the history
* Bump min py >= 3.9 and pin dependencies max

* Bump RTD to use python 3.10

* Add dependabot config
  • Loading branch information
lsetiawan authored Jul 21, 2023
1 parent 2018305 commit 71c9d00
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 18 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9', '3.10', '3.11']
experimental: [false]
steps:
- name: Checkout Repo
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.8"
python: "3.10"
jobs:
pre_build:
# Generate the Sphinx configuration for this Jupyter Book so it builds.
Expand Down
28 changes: 14 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,33 @@ dynamic = ["version"]
description = "Community Seafloor Global Navigation Satellite Systems - Acoustic (GNSS-A) Transponder Surveying Software"
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"astropy>=5.2.2",
"fsspec>=2023.3.0",
"numba>=0.56.4",
"numpy>=1.23.5",
"nptyping>=2.5.0",
"cftime>=1.6.2",
"pandas>=1.5.3",
"astropy>=5.2.2,<6",
"fsspec>=2023.3.0,<2024",
"numba>=0.56.4,<1",
"numpy>=1.23.5,<2",
"nptyping>=2.5.0,<3",
"cftime>=1.6.2,<2",
"pandas>=2.0.3,<3",
"pydantic>=1.10.6,<2",
"pyyaml>=5.4",
"pymap3d>=3.0.1",
"pluggy>=1.0.0",
"pyproj>=3.5.0",
"scipy>=1.10.1",
"pyyaml>=6.0.1,<7",
"pymap3d>=3.0.1,<4",
"pluggy>=1.2.0,<2",
"pyproj>=3.5.0,<4",
"scipy>=1.10.1,<2",
"typer>=0.7.0,<1"
]

Expand Down
9 changes: 7 additions & 2 deletions src/gnatss/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,13 @@ def load_deletions(file_path: str) -> pd.DataFrame:
from .utilities.time import AstroTime

cut_df = pd.read_fwf(file_path, header=None)
cut_df[constants.DEL_STARTTIME] = pd.to_datetime(cut_df[0] + "T" + cut_df[1])
cut_df[constants.DEL_ENDTIME] = pd.to_datetime(cut_df[2] + "T" + cut_df[3])
# Date example: 28-JUL-22 12:30:00
cut_df[constants.DEL_STARTTIME] = pd.to_datetime(
cut_df[0] + "T" + cut_df[1], format="%d-%b-%yT%H:%M:%S"
)
cut_df[constants.DEL_ENDTIME] = pd.to_datetime(
cut_df[2] + "T" + cut_df[3], format="%d-%b-%yT%H:%M:%S"
)
# Got rid of the other columns
# TODO: Parse the other columns
cut_columns = cut_df.columns[0:-2]
Expand Down

0 comments on commit 71c9d00

Please sign in to comment.