Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Feb 6, 2024
1 parent 4bec1d8 commit dfca19f
Show file tree
Hide file tree
Showing 2 changed files with 226 additions and 223 deletions.
15 changes: 14 additions & 1 deletion ecml_tools/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
DEPTH = 0


def debug_indexing(method):
def _debug_indexing(method):
def wrapper(self, index):
global DEPTH
if isinstance(index, tuple):
Expand All @@ -51,6 +51,15 @@ def wrapper(self, index):
return wrapper


if True:

def debug_indexing(x):
return x

else:
debug_indexing = _debug_indexing


def debug_zarr_loading(on_off):
global DEBUG_ZARR_LOADING
DEBUG_ZARR_LOADING = on_off
Expand Down Expand Up @@ -222,6 +231,10 @@ def _get_tuple(self, n):


class Source:
"""
Class used to follow the provenance of a data point.
"""

def __init__(self, dataset, index, source=None, info=None):
self.dataset = dataset
self.index = index
Expand Down
Loading

0 comments on commit dfca19f

Please sign in to comment.