Skip to content

Commit

Permalink
Hopefully fix up tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
HechtiDerLachs committed Oct 1, 2024
1 parent 67265a0 commit 05e5518
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions experimental/Schemes/src/BlowupMorphism.jl
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,19 @@ function restrict(f::AbsCoveredSchemeMorphism,
# Build up the common refinement
success, dom_ref = is_refinement(codomain(inc_dom_cov), domain(f_cov))
@assert success "restriction not implemented for this constellation of refinements"
inc_dom_f = compose(compose(inc_dom_cov, dom_ref), f_cov)
success, cod_ref_map = is_refinement(codomain(f_cov), codomain(inc_cod_cov))
@assert success "restriction not implemented for this constellation of refinements"
inc_dom_f_ref = compose(inc_dom_f, cod_ref_map)
inc_dom_f = codomain(inc_dom_cov) === domain(f_cov) ? compose(inc_dom_cov, f_cov) : compose(compose(inc_dom_cov, dom_ref), f_cov)

success, cod_ref_map = is_refinement(codomain(inc_dom_f), codomain(inc_cod_cov))
inc_dom_f_ref = inc_dom_f # initialize the variable
if !success
success, cod_ref_map = is_refinement(codomain(inc_cod_cov), codomain(inc_dom_f))
@assert success "restriction not implemented for this constellation of refinements"
dom_ref2, to_inc_dom_f, to_inc_cod_cov = fiber_product(inc_dom_f, cod_ref_map)
inc_dom_f_ref = to_inc_cod_cov
else
inc_dom_f_ref = compose(inc_dom_f, cod_ref_map)
end

# Collecting the maps for the restricted projection here
map_dict = IdDict{AbsAffineScheme, AbsAffineSchemeMor}()
for U in patches(domain(inc_dom_f_ref))
Expand Down

0 comments on commit 05e5518

Please sign in to comment.