Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preprocessing and Sorting UserDict print the dict not class #163

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions spikewrap/data_classes/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ def __post_init__(self) -> None:
self.update_two_layer_dict(self, ses_name, run_name, {"0-raw": None})
self.update_two_layer_dict(self.sync, ses_name, run_name, None)

def __repr__(self):
"""
Show the dict not the class.
This does not work on base class.
"""
return self.data.__repr__()

def set_orig_dtype(self, dtype): # TODO: type dtype!
"""used for writing data"""
self.orig_dtype = dtype
Expand Down
7 changes: 7 additions & 0 deletions spikewrap/data_classes/sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ def __post_init__(self) -> None:

self.load_preprocessed_binary()

def __repr__(self):
"""
Show the dict not the class.
This does not work on base class.
"""
return self.data.__repr__()

# Checkers
# ----------------------------------------------------------------------------------

Expand Down