Skip to content

Commit

Permalink
uh. still need netcdf for xarray to read netcdf files.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnb32 committed Apr 25, 2024
1 parent ff057d6 commit f430088
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies = [
"NREL-farms>=1.0.4",
"dask>=2022.0",
"google-auth-oauthlib==0.5.3",
"h5netcdf",
"matplotlib>=3.1",
"numpy>=1.7.0",
"pandas>=2.0",
Expand Down
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
2 changes: 2 additions & 0 deletions sup3r/utilities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from enum import Enum

import dask
import netCDF4
import numpy as np
import pandas as pd
import phygnn
Expand All @@ -22,6 +23,7 @@
'nrel-rex': rex.__version__,
'python': sys.version,
'xarray': xarray.__version__,
'netCDF4': netCDF4.__version__,
'dask': dask.__version__,
}

Expand Down

0 comments on commit f430088

Please sign in to comment.