Skip to content

Commit 9a09a9a

Browse files
authored
Refactoring code structure and cleanup (#1196)
* Refactoring code structure and cleanup * deprecate hasTagsNeighbors * drop julia v1.10 support * improve testing
1 parent 25e878d commit 9a09a9a

33 files changed

+1506
-1206
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
fail-fast: false
2626
matrix:
2727
version:
28-
- 'lts' # long term support
28+
- '1.11'
29+
# - 'lts' # long term support
2930
- '1' # stable
3031
# - 'pre' # pre-release
3132
os:

Project.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,37 +41,37 @@ DFGPlots = "GraphMakie"
4141
[compat]
4242
Aqua = "0.8"
4343
Arrow = "2.7"
44-
Base64 = "1.10"
44+
Base64 = "1.11"
4545
CSV = "0.10"
4646
CodecZlib = "0.7"
47-
Dates = "1.10"
47+
Dates = "1.11"
4848
Distributions = "0.23, 0.24, 0.25"
4949
DocStringExtensions = "0.8, 0.9"
5050
FileIO = "1"
5151
GraphMakie = "0.5.14, 0.6"
5252
Graphs = "1.4"
53-
InteractiveUtils = "1.10"
53+
InteractiveUtils = "1.11"
5454
JSON = "1.0.0"
5555
LieGroups = "0.1"
56-
LinearAlgebra = "1.10"
56+
LinearAlgebra = "1.11"
5757
ManifoldsBase = "1, 2"
5858
OrderedCollections = "1.4"
5959
Pkg = "1.4, 1.5"
6060
ProgressMeter = "1"
61-
Random = "1.10"
61+
Random = "1.11"
6262
RecursiveArrayTools = "2, 3"
6363
SHA = "0.7, 1"
64-
SparseArrays = "1.10"
64+
SparseArrays = "1.11"
6565
StaticArrays = "1"
66-
Statistics = "1.10"
67-
Tables = "v1.11.1"
66+
Statistics = "1.11"
67+
Tables = "1.11.1"
6868
Tar = "1.9"
6969
TensorCast = "0.3.3, 0.4"
70-
Test = "1.10"
70+
Test = "1.11"
7171
TimeZones = "1.3.1"
7272
TimesDates = "0.3.3"
73-
UUIDs = "1.10"
74-
julia = "1.10"
73+
UUIDs = "1.11"
74+
julia = "1.11"
7575

7676
[extras]
7777
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"

src/Common.jl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
11

2-
## Utility functions for getting type names and modules (from IncrementalInference)
3-
_getmodule(t::T) where {T} = T.name.module
4-
_getname(t::T) where {T} = T.name.name
5-
6-
function convertPackedType(t::Union{T, Type{T}}) where {T <: AbstractObservation}
7-
return getfield(_getmodule(t), Symbol("Packed$(_getname(t))"))
8-
end
9-
function convertStructType(::Type{PT}) where {PT <: AbstractPackedObservation}
10-
# see #668 for expanded reasoning. PT may be ::UnionAll if the type is of template type.
11-
ptt = PT isa DataType ? PT.name.name : PT
12-
moduleName = PT isa DataType ? PT.name.module : Main
13-
symbolName = Symbol(string(ptt)[7:end])
14-
return getfield(moduleName, symbolName)
15-
end
16-
172
##==============================================================================
183
## Sorting
194
##==============================================================================

src/DataBlobs/entities/BlobEntry.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ version(::Type{Blobentry}) = v"0.1.0"
5353
function Blobentry(
5454
label::Symbol,
5555
blobstore = :default;
56-
metadata = JSONText("{}"),
56+
metadata::Union{JSONText, AbstractDict, NamedTuple} = JSONText("{}"),
5757
kwargs...,
5858
)
5959
if !(metadata isa JSONText)

0 commit comments

Comments
 (0)