From 96b985b49a6ba2c4b8361b38d8fab10570689100 Mon Sep 17 00:00:00 2001 From: ivanzvonkov Date: Fri, 11 Aug 2023 11:58:07 -0400 Subject: [PATCH] Fix path + str addition --- datasets.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/datasets.py b/datasets.py index 935bcf71..2ba222a5 100644 --- a/datasets.py +++ b/datasets.py @@ -343,13 +343,17 @@ def load_labels(self) -> pd.DataFrame: NamibiaNorthStratified_dir = raw_dir / "Namibia_North_stratified_2020" df1 = pd.read_csv( NamibiaNorthStratified_dir - / "ceo-Namibia_North-Sep-2020---Sep-2021-Stratified-sample-(Set-1)" - + "-sample-data-2023-06-22.csv" + / ( + "ceo-Namibia_North-Sep-2020---Sep-2021-Stratified-sample-(Set-1)" + + "-sample-data-2023-06-22.csv" + ) ) df2 = pd.read_csv( NamibiaNorthStratified_dir - / "ceo-Namibia_North-Sep-2020---Sep-2021-Stratified-sample-(Set-2)" - + "-sample-data-2023-06-22.csv" + / ( + "ceo-Namibia_North-Sep-2020---Sep-2021-Stratified-sample-(Set-2)" + + "-sample-data-2023-06-22.csv" + ) ) df = pd.concat([df1, df2]) df[CLASS_PROB] = df["Does this pixel contain active cropland?"] == "Crop"