Skip to content

Commit

Permalink
isort, rename workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Havens committed Apr 26, 2021
1 parent dc8025b commit aea3c1c
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ jobs:
env:
WFR_SKIP_EXTERNAL_REQUEST_TEST: please_skip
WFR_SKIP_ON_GITHUB_ACTIONS: also_skip
run: python3 -m unittest -v tests/data/hrrr/test_hrrr_gold.py
run: python3 -m unittest -v
1 change: 1 addition & 0 deletions tests/data/hrrr/test_config_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import unittest

import pandas as pd

import tests.helpers
from weather_forecast_retrieval.data.hrrr.config_file import ConfigFile

Expand Down
3 changes: 2 additions & 1 deletion tests/data/hrrr/test_file_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
import unittest

import mock
import tests.helpers
import xarray

import tests.helpers
from tests.RME import RMETestCase
from weather_forecast_retrieval.data.hrrr.file_loader import FileLoader
from weather_forecast_retrieval.data.hrrr.grib_file import GribFile
Expand Down
2 changes: 1 addition & 1 deletion tests/data/hrrr/test_http_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import pandas as pd

from tests.RME import RMETestCase
from tests.helpers import skip_external_http_request
from tests.RME import RMETestCase
from weather_forecast_retrieval.data.hrrr import HttpRetrieval


Expand Down
2 changes: 1 addition & 1 deletion tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

LOG_ERROR_CONFIG = {
'logging': {
'log_level': 'DEBUG',
'log_level': 'ERROR',
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/test_grib2nc.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
import unittest

from tests.RME import RMETestCase
from tests.helpers import skip_on_github_actions
from tests.RME import RMETestCase
from weather_forecast_retrieval.grib2nc import grib2nc


Expand Down
2 changes: 1 addition & 1 deletion tests/test_hrrr_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import numpy as np
import pandas as pd

from tests.RME import RMETestCase
from tests.helpers import skip_external_http_request
from tests.RME import RMETestCase
from weather_forecast_retrieval import hrrr_archive


Expand Down
3 changes: 1 addition & 2 deletions tests/test_hrrr_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

import pandas as pd

from tests.RME import RMETestCase
from tests.helpers import skip_on_github_actions

from tests.RME import RMETestCase
from weather_forecast_retrieval.data.hrrr import FileLoader
from weather_forecast_retrieval.hrrr_preprocessor import HRRRPreprocessor

Expand Down
1 change: 1 addition & 0 deletions weather_forecast_retrieval/hrrr_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def download_url(fname, OUTDIR, logger, file_day, model='hrrr', field='sfc'):
check_this = requests.head(URL)
file_size = int(check_this.headers['content-length'])

success = False
try:
if file_size > 10000:
logger.info("Downloading: {}".format(URL))
Expand Down

0 comments on commit aea3c1c

Please sign in to comment.