Skip to content

Fixes for runtime#78

Merged
seanmacavaney merged 6 commits intomainfrom
fixes_mursean
Nov 4, 2025
Merged

Fixes for runtime#78
seanmacavaney merged 6 commits intomainfrom
fixes_mursean

Conversation

@cmacdonald
Copy link
Copy Markdown
Collaborator

Addresses: #75 #76 #77

@cmacdonald
Copy link
Copy Markdown
Collaborator Author

typing failures related to python 3.8? bump minimum python version?

else:
pd = ir_measures.lazylibs.pandas()
return pd.DataFrame(self.as_namedtuple_iter())
return pd.DataFrame(self.as_namedtuple_iter(), columns=['query_id', 'doc_id', 'relevance', 'iteration'])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this change for? Won't it mean that other data can't flow through automatically?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more discussion in #76

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Then I think I’d prefer to only apply the default set of columns when it’s empty. Otherwise it’s not compatible with new features we’ve added related to custom inputs.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reasonable. I wasnt sure it was overriding column names from iter-tuples. If we can detect emptyness at that point, then I prefer your solution

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed what I had envisioned -- does it look reasonable to you?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

seanmacavaney and others added 3 commits November 3, 2025 14:53
Ensure DataFrame is created with proper columns even when empty.
@seanmacavaney seanmacavaney merged commit c5d6b25 into main Nov 4, 2025
7 checks passed
@seanmacavaney seanmacavaney deleted the fixes_mursean branch November 4, 2025 15:02
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.

set prettyname for custom measures error message when passed empty list as run str + columns error message

2 participants