Skip to content

Commit 8af5b0e

Browse files
committed
add deprecation warning for cindex and dindex
1 parent 6af021f commit 8af5b0e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

cebra/data/single_session.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,22 @@ class MixedDataLoader(cebra_data.Loader):
274274
positive_sampling: str = dataclasses.field(default="discrete_variable")
275275
discrete_sampling_prior: str = dataclasses.field(default="uniform")
276276

277+
@property
278+
def dindex(self):
279+
warnings.warn("dindex is deprecated. Use discrete_index instead.",
280+
DeprecationWarning)
281+
return self.dataset.discrete_index
282+
277283
@property
278284
def discrete_index(self):
279285
return self.dataset.discrete_index
280286

287+
@property
288+
def cindex(self):
289+
warnings.warn("cindex is deprecated. Use continuous_index instead.",
290+
DeprecationWarning)
291+
return self.dataset.continuous_index
292+
281293
@property
282294
def continuous_index(self):
283295
return self.dataset.continuous_index

0 commit comments

Comments
 (0)