diff --git a/examples/ncss/NCSS_Cartopy_Example.py b/examples/ncss/NCSS_Cartopy_Example.py index c2ebbe62d..5f179aee6 100644 --- a/examples/ncss/NCSS_Cartopy_Example.py +++ b/examples/ncss/NCSS_Cartopy_Example.py @@ -111,7 +111,7 @@ plt.colorbar(cf, ax=ax, fraction=0.032) # Make a title with the time value -ax.set_title(f'Temperature forecast (\u00b0F) for {time_val:%d %B %Y %H:%MZ}', +ax.set_title(f'Temperature forecast (\u00b0F) for {time_val: %d %B %Y %H:%MZ}', fontsize=20) # Plot markers for each lat/long to show grid points for 0.25 deg GFS diff --git a/src/siphon/cdmr/ncstream.py b/src/siphon/cdmr/ncstream.py index bbffca5fe..9f52dd243 100644 --- a/src/siphon/cdmr/ncstream.py +++ b/src/siphon/cdmr/ncstream.py @@ -140,7 +140,7 @@ def read_messages(fobj, magic_table): if func is not None: messages.append(func(fobj)) else: - log.error('Unknown magic: ' + str(' '.join(f'{b:02x}' + log.error('Unknown magic: ' + str(' '.join(f'{b: 02x}' for b in bytearray(magic)))) return messages diff --git a/src/siphon/http_util.py b/src/siphon/http_util.py index d89ac2d64..1bc5d630d 100644 --- a/src/siphon/http_util.py +++ b/src/siphon/http_util.py @@ -490,7 +490,7 @@ def get(self, path, params=None): else: text = resp.text raise requests.HTTPError(f'Error accessing {resp.request.url}\n' - f'Server Error ({resp.status_code:d}: {text})') + f'Server Error ({resp.status_code: d}: {text})') return resp def _get_metadata(self): diff --git a/src/siphon/simplewebservice/iastate.py b/src/siphon/simplewebservice/iastate.py index 1b54b52e0..92d908fbe 100644 --- a/src/siphon/simplewebservice/iastate.py +++ b/src/siphon/simplewebservice/iastate.py @@ -176,7 +176,7 @@ def _get_data_raw(self, time, site_id, pressure=None): if not (json_data['profiles'] and json_data['profiles'][0]['profile']): message = 'No data available ' if time is not None: - message += f'for {time:%Y-%m-%d %HZ} ' + message += f'for {time: %Y-%m-%d %HZ} ' if site_id is not None: message += f'for station {site_id}' if pressure is not None: diff --git a/tests/test_catalog.py b/tests/test_catalog.py index 53168f835..93eb53291 100644 --- a/tests/test_catalog.py +++ b/tests/test_catalog.py @@ -407,4 +407,4 @@ def test_nasa_hyrax_dataset(): # Checks #gh-759 assert len(cat.datasets) == 161 - assert 'epic_1b_20240413222222_03.h5' in cat.datasets \ No newline at end of file + assert 'epic_1b_20240413222222_03.h5' in cat.datasets