Skip to content

Commit

Permalink
added excel performance scores with true negatives etc
Browse files Browse the repository at this point in the history
  • Loading branch information
ERKuipers committed Nov 26, 2024
1 parent faddc48 commit 04c23eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GloFAS/GloFAS_analysis/performance_calculator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pandas as pd
import geopandas as gpd
import os
from pathlib import Path
import numpy as np
import unidecode
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -31,8 +31,8 @@ def __init__(self, DataDir, RPyr, leadtime, impactData, triggerProb, adminLevel,
self.impactData = impactData
self.PredictedEvents_gdf = PredictedEvents_gdf
self.comparisonType = comparisonType
self.comparisonDir = f'{self.DataDir}/{comparisonType}'
os.mkdir (self.comparisonDir, exist_ok=True)
self.comparisonDir = Path(f'{self.DataDir}/{comparisonType}')
self.comparisonDir.mkdir (parents=True, exist_ok=True)
if comparisonType =='Observation':
self.impact_gdf = self.openObservation_gdf()
elif comparisonType =='Impact':
Expand Down

0 comments on commit 04c23eb

Please sign in to comment.