Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bnb/nc4 dep removal #210

Merged
merged 17 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
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
4 changes: 4 additions & 0 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
fetch-tags: true
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ dependencies = [
"NREL-farms>=1.0.4",
"dask>=2022.0",
"google-auth-oauthlib==0.5.3",
"h5netcdf>=1.1.0",
"cftime>=1.6.2",
"matplotlib>=3.1",
"numpy>=1.7.0",
"netCDF4==1.5.8",
"pandas>=2.0",
"pillow>=10.0",
"pytest>=5.2",
"scipy>=1.0.0",
"sphinx>=7.0",
"tensorflow>2.4,<2.16",
"tensorflow>2.4,<2.10",
"xarray>=2023.0",
]

Expand Down
14 changes: 0 additions & 14 deletions requirements.txt

This file was deleted.

6 changes: 4 additions & 2 deletions sup3r/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,8 @@ def train_epoch(self,

if only_gen or (train_gen and not gen_too_good):
trained_gen = True
b_loss_details = self.run_gradient_descent(
b_loss_details = self.timer(
self.run_gradient_descent,
batch.low_res,
batch.high_res,
self.generator_weights,
Expand All @@ -700,7 +701,8 @@ def train_epoch(self,

if only_disc or (train_disc and not disc_too_good):
trained_disc = True
b_loss_details = self.run_gradient_descent(
b_loss_details = self.timer(
self.run_gradient_descent,
batch.low_res,
batch.high_res,
self.discriminator_weights,
Expand Down
18 changes: 9 additions & 9 deletions sup3r/utilities/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
"""Sup3r utilities"""
import sys
import pandas as pd
import numpy as np
import tensorflow as tf
import sklearn
import dask
import xarray
import netCDF4
from enum import Enum

import dask
import h5netcdf
import numpy as np
import pandas as pd
import phygnn
import rex
import sklearn
import tensorflow as tf
import xarray

from sup3r import __version__


VERSION_RECORD = {'sup3r': __version__,
'tensorflow': tf.__version__,
'sklearn': sklearn.__version__,
Expand All @@ -24,7 +23,7 @@
'nrel-rex': rex.__version__,
'python': sys.version,
'xarray': xarray.__version__,
'netCDF4': netCDF4.__version__,
'h5netcdf': h5netcdf.__version__,
'dask': dask.__version__,
}

Expand Down Expand Up @@ -56,6 +55,7 @@ def __format__(self, format_spec):
@classmethod
def all_names(cls):
"""All module names.

Returns
-------
set
Expand Down
Loading
Loading