File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ def local_exceedance_impact(
570
570
test_frequency = 1 / np .array (return_periods )
571
571
572
572
exceedance_impact = np .full (
573
- (self .imp_mat .shape [1 ], test_frequency . shape [ 0 ] ),
573
+ (self .imp_mat .shape [1 ], len ( test_frequency ) ),
574
574
np .nan if method == "interpolate" else 0.0 ,
575
575
)
576
576
Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ def local_exceedance_intensity(
557
557
test_frequency = 1 / np .array (return_periods )
558
558
559
559
exceedance_intensity = np .full (
560
- (self .intensity .shape [1 ], test_frequency . shape [ 0 ] ),
560
+ (self .intensity .shape [1 ], len ( test_frequency ) ),
561
561
np .nan if method == "interpolate" else 0.0 ,
562
562
)
563
563
@@ -687,7 +687,7 @@ def local_return_period(
687
687
raise ValueError (f"Unknown method: { method } " )
688
688
689
689
return_periods = np .full (
690
- (self .intensity .shape [1 ], threshold_intensities . shape [ 0 ] ), np .nan
690
+ (self .intensity .shape [1 ], len ( threshold_intensities ) ), np .nan
691
691
)
692
692
693
693
nonzero_centroids = np .where (self .intensity .getnnz (axis = 0 ) > 0 )[0 ]
You can’t perform that action at this time.
0 commit comments