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

Fix disptach method problem #38

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from
Open

Fix disptach method problem #38

wants to merge 16 commits into from

Conversation

mxrcx
Copy link
Collaborator

@mxrcx mxrcx commented Jun 25, 2023

No description provided.

def dur_unit(x):
return dur_col(x).units # Changed from units(dur_col(x))

@singledispatch
Copy link
Collaborator Author

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

from pyicu.utils_cli import warn_dots
from functools import singledispatch

@singledispatch
Copy link
Collaborator Author

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

if mode == "match_vals":
print(x)
print(x['po2'])
print(TableAccessor.is_id_tbl(x))
Copy link
Collaborator Author

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant