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

Closes #1632 - Multiple dtype support and improved list processing #1662

Merged

Conversation

Ethan-DeBandi99
Copy link
Contributor

Closes #1632

  • Adds proper support for lists. The dtype is now set to the type of the value within the list. This allows for a list of pdarrays that contain different dtypes to be in the same list. This does still require the list to be made up of 1 type.
  • Adds testing to ensure that all json arguments are parsed properly and set to allow for parsing on the server.

Note - The regexes in the test are not using the escape sequences \w or \d because pytest produces deprecation warnings when using them

…objects.

Updated parsing to require objects in the list be the same type, though pdarray dtypes are able to have varying dtypes.
Added testing for the _json_args_to_str. Ensure that numeric, str, Strings, and pdarray are properly converted for parsing on the server.
Copy link
Member

@stress-tess stress-tess left a comment

Choose a reason for hiding this comment

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

Logic looks good! I just have a note on addressing the deprecation warning u were seeing with \w and \d

tests/message_test.py Outdated Show resolved Hide resolved
@stress-tess stress-tess merged commit d081449 into Bears-R-Us:master Aug 8, 2022
@Ethan-DeBandi99 Ethan-DeBandi99 deleted the 1632_json_multiple_dtype branch August 9, 2022 11:20
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.

Multiple dtype support for list in JSON formatted message arguments
3 participants