Skip to content

Commit

Permalink
Merge pull request #11 from ChitambarLab/polytope-utils
Browse files Browse the repository at this point in the history
Polytope utils
  • Loading branch information
bdoolittle committed Sep 4, 2020
2 parents 6d2bb23 + c0ff7f6 commit 8c0cda3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/LocalPolytope/adjacency_decomposition.jl
Expand Up @@ -167,7 +167,17 @@ function adjacency_decomposition(
norm_facet = facet_dict[target_BG]["norm_facet"]

# compute adjacent facets
adj_facets = adjacent_facets(vertices, norm_facet, dir=porta_tmp_dir, cleanup=false)
adj_facets = try
adjacent_facets(vertices, norm_facet, dir=porta_tmp_dir, cleanup=false)
# if an unexpected error occurs with XPORTA, mark facet as such and move on.
catch error
facet_dict[target_BG]["considered"] = true

push!(facet_dict[target_BG],"error" => true)
push!(facet_dict[target_BG],"error_msg" => sprint(showerror, error, backtrace()))

continue
end

for adj_facet in adj_facets
adj_game = convert(BellGame, adj_facet, PM, rep="normalized")
Expand Down

0 comments on commit 8c0cda3

Please sign in to comment.