From 5838861298cd3fe700884624996470f79991a0c0 Mon Sep 17 00:00:00 2001 From: Ryan Levy Date: Thu, 17 Oct 2024 15:43:52 -0400 Subject: [PATCH] Undo bad formatting --- src/IndexMaps/complexindexmap.jl | 2 +- src/IndexMaps/realindexmap.jl | 2 +- src/digit_inds.jl | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/IndexMaps/complexindexmap.jl b/src/IndexMaps/complexindexmap.jl index 2df8a0f..5443329 100644 --- a/src/IndexMaps/complexindexmap.jl +++ b/src/IndexMaps/complexindexmap.jl @@ -72,7 +72,7 @@ whilst imaginary valued digits should have the "Imag" tag. The complex_continuou constructor will do this by default """ function ComplexIndexMap( - s::IndsNetwork; + s::IndsNetwork, real_dimension_vertices::Vector{Vector{V}}=default_dimension_vertices(s), imag_dimension_vertices::Vector{Vector{V}}=default_dimension_vertices(s), ) where {V} diff --git a/src/IndexMaps/realindexmap.jl b/src/IndexMaps/realindexmap.jl index 25c3006..d382be5 100644 --- a/src/IndexMaps/realindexmap.jl +++ b/src/IndexMaps/realindexmap.jl @@ -37,7 +37,7 @@ function rem_index(imap::RealIndexMap, ind::Index) end function RealIndexMap( - s::IndsNetwork; dimension_vertices::Vector{Vector{V}}=default_dimension_vertices(s) + s::IndsNetwork, dimension_vertices::Vector{Vector{V}}=default_dimension_vertices(s) ) where {V} dimension_indices = Vector{Index}[ !isempty(vertices) ? inds(s, vertices) : Index[] for vertices in dimension_vertices diff --git a/src/digit_inds.jl b/src/digit_inds.jl index 330612e..4d74584 100644 --- a/src/digit_inds.jl +++ b/src/digit_inds.jl @@ -70,8 +70,8 @@ function real_digit_tag(vertex, dim::Int, digit::Int) end function digit_siteinds( - g::AbstractGraph; - dimension_vertices::Vector{Vector{V}}=default_dimension_vertices(g), + g::AbstractGraph, + dimension_vertices::Vector{Vector{V}}=default_dimension_vertices(g); base=2, ) where {V} is = IndsNetwork(g; site_space=Dictionary(vertices(g), [Index[] for v in vertices(g)])) @@ -85,9 +85,9 @@ function digit_siteinds( end function complex_digit_siteinds( - g::AbstractGraph; + g::AbstractGraph, real_dimension_vertices::Vector{Vector{V}}=default_dimension_vertices(g), - imag_dimension_vertices::Vector{Vector{V}}=default_dimension_vertices(g), + imag_dimension_vertices::Vector{Vector{V}}=default_dimension_vertices(g); base=2, ) where {V} is = IndsNetwork(g; site_space=Dictionary(vertices(g), [Index[] for v in vertices(g)]))