-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix disptach method problem #38
base: dev
Are you sure you want to change the base?
Conversation
src/pyicu/tbl_utils.py
Outdated
def dur_unit(x): | ||
return dur_col(x).units # Changed from units(dur_col(x)) | ||
|
||
@singledispatch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't choose the correct case
src/pyicu/tbl_utils.py
Outdated
from pyicu.utils_cli import warn_dots | ||
from functools import singledispatch | ||
|
||
@singledispatch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the default method is included it chooses the default --> stops run
src/pyicu/callbacks/concept.py
Outdated
if mode == "match_vals": | ||
print(x) | ||
print(x['po2']) | ||
print(TableAccessor.is_id_tbl(x)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is_ts_tbl() returns False, whereas is_id_tbl() returns an AttributeError: 'dict' object has no attribute 'is_pandas'
No description provided.