Skip to content

Commit

Permalink
Change name of TP_data in to conn to reflect name change in Doamin
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosejoycrocker committed Feb 20, 2024
1 parent 80d2a90 commit 2485e5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/site_selection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,17 @@ function get_test_decision_matrix(dom::Domain)::Matrix{Float64}
wave_av = ADRIA.decision.summary_stat_env(dom.wave_scens, (:timesteps, :scenarios))
depth_med = dom.site_data.depth_med

TP_data = ADRIA.connectivity_strength(
dom.TP_data .* ADRIA.site_k_area(dom), collect(cover), dom.TP_data
conn_data = ADRIA.connectivity_strength(
dom.conn .* ADRIA.site_k_area(dom), collect(cover), dom.conn
)

heat_stress =
1 .- vec((dhw_av .- minimum(dhw_av)) ./ (maximum(dhw_av) - minimum(dhw_av)))
wave_stress =
1 .- vec((wave_av .- minimum(wave_av)) ./ (maximum(wave_av) - minimum(wave_av)))
space_area = leftover_space .* k_area
in_conn = TP_data.in_conn
out_conn = TP_data.out_conn
in_conn = conn_data.in_conn
out_conn = conn_data.out_conn

site_ids = dom.site_data.site_id
# Simplified decision matrix for testing
Expand Down

0 comments on commit 2485e5d

Please sign in to comment.