From 6523b4024d330bb53b6a9e6cea898b571f5405a8 Mon Sep 17 00:00:00 2001 From: hhs732 Date: Mon, 22 Apr 2024 22:45:19 +0000 Subject: [PATCH] applied linting and formatting --- data/bathymetry/preprocess_bathymetry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/bathymetry/preprocess_bathymetry.py b/data/bathymetry/preprocess_bathymetry.py index bae411aef..bad573ad8 100644 --- a/data/bathymetry/preprocess_bathymetry.py +++ b/data/bathymetry/preprocess_bathymetry.py @@ -122,8 +122,8 @@ def preprocessing_ehydro(tif, bathy_bounds, survey_gdb, output, min_depth_thresh # Add survey meta data time_stamp = bathy_bounds.loc[0, 'SurveyDateStamp'] time_stamp_obj = str(time_stamp) - - bathy_nwm_streams['SurveyDateStamp'] = time_stamp_obj #bathy_bounds.loc[0, 'SurveyDateStamp'] + + bathy_nwm_streams['SurveyDateStamp'] = time_stamp_obj # bathy_bounds.loc[0, 'SurveyDateStamp'] bathy_nwm_streams['SurveyId'] = bathy_bounds.loc[0, 'SurveyId'] bathy_nwm_streams['Sheet_Name'] = bathy_bounds.loc[0, 'Sheet_Name'] bathy_nwm_streams["Bathymetry_source"] = 'USACE eHydro' @@ -135,7 +135,7 @@ def preprocessing_ehydro(tif, bathy_bounds, survey_gdb, output, min_depth_thresh # schema = gpd.io.file.infer_schema(bathy_nwm_streams) # print(schema) # print("---------------------------") - + if os.path.exists(output): print(f"{output} already exists. Concatinating now...") existing_bathy_file = gpd.read_file(output, engine="pyogrio", use_arrow=True)