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

18691: Add Reaction to replace CasesWithDetails as react return type, Major #115

Merged
merged 12 commits into from
Jan 26, 2024

Conversation

jackx111
Copy link
Member

@jackx111 jackx111 commented Jan 24, 2024

  • Rename CasesWithDetails to Reaction
  • Added the ability to instantiate the class with more than just a dataframe.
  • Extended the types allowed for the dispatch method add_reaction to list of dicts and other classes of Reaction
  • Removed support for add_reaction types of the old reaction type so now everything should be in this class. Also it had errors when trying to add_reaction other dicts due to the dispatch sending it to the wrong method

@jackx111
Copy link
Member Author

jackx111 commented Jan 24, 2024

Martins Comments on a previous PR

I think it's fair to say that the goal of the PR is to unify Reaction and ReactionSeries. So, I recommend that we explicitly do this. I see no reason (perhaps you do, let's discuss if so) why we can't just delete Reaction and ReactionSeries and then rename CasesWithDetails to Reaction.

Next, I don't think that CasesWithDetails (which is a concrete class) should be housed in the types.py module. However, once we do No. 1 above, the types.py module would only contain Distances, which is entirely unused, (in howso-engine-py, anyway), so perhaps we can just delete the whole thing? At this point, perhaps we just put the new Reaction (was CasesWithDetails) in a new module called simply: reaction.py.

If we can do these 2 things and fix up everything so that it all still passes tests, etc., it's a win!

@jackx111 jackx111 changed the title 18691: Add CasesWithDetails as react return type, DRAFT 18691: Add Reaction to replace CasesWithDetails as react return type, Major Jan 25, 2024
@jackx111 jackx111 marked this pull request as ready for review January 25, 2024 16:36
@jackx111 jackx111 requested a review from a team as a code owner January 25, 2024 16:36
cademack
cademack previously approved these changes Jan 25, 2024
howso/client/pandas/client.py Outdated Show resolved Hide resolved
howso/utilities/reaction.py Outdated Show resolved Hide resolved
howso/utilities/reaction.py Outdated Show resolved Hide resolved
howso/client/base.py Outdated Show resolved Hide resolved
howso/client/base.py Outdated Show resolved Hide resolved
howso/client/base.py Outdated Show resolved Hide resolved
howso/client/pandas/client.py Outdated Show resolved Hide resolved
howso/client/pandas/client.py Outdated Show resolved Hide resolved
howso/engine/trainee.py Outdated Show resolved Hide resolved
howso/engine/trainee.py Outdated Show resolved Hide resolved
howso/scikit/scikit.py Show resolved Hide resolved
howso/utilities/reaction.py Show resolved Hide resolved
howso/utilities/reaction.py Show resolved Hide resolved
Copy link
Member

@mkoistinen mkoistinen left a comment

Choose a reason for hiding this comment

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

👍

@jackx111 jackx111 merged commit f4c6fe0 into main Jan 26, 2024
32 checks passed
@jackx111 jackx111 deleted the 18691-add-caseswithdetails branch January 26, 2024 00:38
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.

3 participants