Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bnb32 committed Jul 8, 2024
1 parent 6e36cd4 commit c89ddf9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 0 additions & 2 deletions nsrdb/create_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

MAIN_KWARGS = {
**BASE_KWARGS,
'spatial': '4km',
'freq': '30min',
'extent': 'full',
'satellite': 'east',
}
Expand Down
13 changes: 6 additions & 7 deletions nsrdb/data_model/clouds.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def __init__(
coordinates and not at the apparent location from the sensor.
solar_shading : bool
Flag to adjust cloud coordinates so clouds are assigned to the
coordiantes they shade.
coordinates they shade.
remap_pc : bool
Flag to remap the parallax-corrected and solar-shading-corrected
data back onto the original semi-regular GOES coordinates
Expand Down Expand Up @@ -1257,10 +1257,9 @@ def __init__(
self._obj_cache = {}

logger.info(
'Cloud coordinate parallax correction: {}, solar '
'shading adjustment: {}, coordinate remapping: {}'.format(
parallax_correct, solar_shading, remap_pc
)
f'Cloud coordinate parallax correction: {parallax_correct}, '
f'solar shading adjustment: {solar_shading}, '
f'coordinate remapping: {remap_pc} for dsets: {dsets}'
)

self._check_freq()
Expand Down Expand Up @@ -1673,7 +1672,7 @@ def infer_data_freq(flist):

if len(flist) <= 3:
ti_delta_minutes = int(ti_deltas_minutes[0])
freq = '{}T'.format(ti_delta_minutes)
freq = '{}min'.format(ti_delta_minutes)
else:
try:
ti_delta_minutes = int(mode(ti_deltas_minutes).mode)
Expand All @@ -1684,7 +1683,7 @@ def infer_data_freq(flist):
logger.error(msg)
raise ValueError(msg) from e

freq = '{}T'.format(ti_delta_minutes)
freq = '{}min'.format(ti_delta_minutes)
if len(flist) < 5:
w = (
'File list contains less than 5 files. Inferred '
Expand Down

0 comments on commit c89ddf9

Please sign in to comment.