Skip to content

Commit

Permalink
Fix ambiguity with citostring
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti committed Jun 28, 2024
1 parent 91b49ca commit 1746893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storage/Storage.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ Deletes the given key from the store.
"""

citostring(i::CartesianIndex, sep::Char='.') = join(reverse((i - oneunit(i)).I), sep)
citostring(::CartesianIndex{0}, _) = "0"
citostring(i::CartesianIndex, s::AbstractStore, p) = (@info("citostring",i,s,p);citostring(i, only(getmetadata(s, p, true).dimension_separator)))
citostring(::CartesianIndex{0}, _::Char) = "0"
citostring(i::CartesianIndex, s::AbstractStore, p) = citostring(i, only(getmetadata(s, p, true).dimension_separator))
_concatpath(p,s) = isempty(p) ? s : rstrip(p,'/') * '/' * s

Base.getindex(s::AbstractStore, p, i::CartesianIndex) = s[p, citostring(i, s, p)]
Expand Down

0 comments on commit 1746893

Please sign in to comment.