File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,17 @@ function Base.convert(::Type{DateTime}, ts::ZonedDateTime)
9
9
return DateTime (ts, Local)
10
10
end
11
11
12
+
13
+ # # ================================================================================
14
+ # # Add @deprecate in v0.19, remove after v0.20
15
+ # #=================================================================================
16
+
17
+
18
+ # TODO ADD DEPRECATION
19
+ packVariable (:: AbstractDFG , v:: DFGVariable ) = packVariable (v)
20
+
21
+
22
+
12
23
# # ================================================================================
13
24
# # Deprecate before v0.20 - Kept longer with error
14
25
# #=================================================================================
Original file line number Diff line number Diff line change @@ -120,14 +120,14 @@ end
120
120
# #==============================================================================
121
121
# # Variable Packing and unpacking
122
122
# #==============================================================================
123
- function packVariable (dfg :: AbstractDFG , v:: DFGVariable )
123
+ function packVariable (v:: DFGVariable )
124
124
props = Dict {String, Any} ()
125
125
props[" label" ] = string (v. label)
126
126
props[" timestamp" ] = Dates. format (v. timestamp, " yyyy-mm-ddTHH:MM:SS.ssszzz" )
127
127
props[" nstime" ] = string (v. nstime. value)
128
128
props[" tags" ] = JSON2. write (v. tags)
129
129
props[" ppeDict" ] = JSON2. write (v. ppeDict)
130
- props[" solverDataDict" ] = JSON2. write (Dict (keys (v. solverDataDict) .=> map (vnd -> packVariableNodeData (dfg, vnd), values (v. solverDataDict))))
130
+ props[" solverDataDict" ] = JSON2. write (Dict (keys (v. solverDataDict) .=> map (vnd -> packVariableNodeData (vnd), values (v. solverDataDict))))
131
131
props[" smallData" ] = JSON2. write (v. smallData)
132
132
props[" solvable" ] = v. solvable
133
133
props[" variableType" ] = typeModuleName (getVariableType (v))
@@ -137,6 +137,7 @@ function packVariable(dfg::AbstractDFG, v::DFGVariable)
137
137
return props:: Dict{String, Any}
138
138
end
139
139
140
+
140
141
"""
141
142
$(SIGNATURES)
142
143
You can’t perform that action at this time.
0 commit comments