@@ -139,15 +139,15 @@ function Base.show(io::IO, ::DeferredDataHandler)
139139 print (io, " [ deffered data ]" )
140140end
141141
142- # We use the `LazyIndex ` to instantiate the data interface for the model, in case of `DeferredDataHandler`
142+ # We use the `datalabel ` to instantiate the data interface for the model, in case of `DeferredDataHandler`
143143# the data is not known at the time of the model creation
144144function __infer_create_data_interface (model, context, key:: Symbol , :: DeferredDataHandler )
145- return GraphPPL. getorcreate! (model, context, GraphPPL. NodeCreationOptions (kind = :data , factorized = true ), key, GraphPPL. LazyIndex ())
145+ return GraphPPL. datalabel (model, context, GraphPPL. NodeCreationOptions (kind = :data , factorized = true ), key, GraphPPL. MissingCollection ())
146146end
147147
148- # In all other cases we use the `LazyIndex ` to instantiate the data interface for the model and the data is known at the time of the model creation
148+ # In all other cases we use the `datalabel ` to instantiate the data interface for the model and the data is known at the time of the model creation
149149function __infer_create_data_interface (model, context, key:: Symbol , data)
150- return GraphPPL. getorcreate! (model, context, GraphPPL. NodeCreationOptions (kind = :data , factorized = true ), key, GraphPPL . LazyIndex ( data) )
150+ return GraphPPL. datalabel (model, context, GraphPPL. NodeCreationOptions (kind = :data , factorized = true ), key, data)
151151end
152152
153153merge_data_handlers (data:: Dict , newdata:: Dict ) = merge (data, newdata)
0 commit comments