File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -394,9 +394,6 @@ def _grib_str_to_df(self, grib_str: bytes) -> pd.DataFrame:
394
394
- The temporary file used for parsing is automatically deleted after use.
395
395
- Ensure the input GRIB data is valid and encoded in a binary format.
396
396
"""
397
- # Ensure grib_str is in bytes format
398
- if not isinstance (grib_str , (bytes , bytearray )):
399
- raise ValueError ("grib_str must be a bytes or bytearray object." )
400
397
401
398
with tempfile .NamedTemporaryFile (delete = True ) as temp_file :
402
399
# Write the GRIB binary data to the temporary file
@@ -434,7 +431,7 @@ def _get_data_single_forecast(
434
431
pd.DataFrame: The forecast for the specified time.
435
432
"""
436
433
437
- grib_str = self ._get_coverage_file (
434
+ grib_str : bytes = self ._get_coverage_file (
438
435
coverage_id = coverage_id ,
439
436
height = height ,
440
437
pressure = pressure ,
You can’t perform that action at this time.
0 commit comments