diff --git a/las_outputs.py b/las_outputs.py index 740e990..11cf21d 100644 --- a/las_outputs.py +++ b/las_outputs.py @@ -137,6 +137,7 @@ def calculate_volumes(profile_name, survey_date, csv_output_dir, ch_limits, volu try: volumes = pd.read_csv(csv_vol, index_col=0) except FileNotFoundError: + # Create new dataframe if csv does not exist volumes = pd.DataFrame() for current_date in profiles.columns: