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

Improve data tree #1339

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Improve data tree #1339

merged 1 commit into from
Jan 9, 2024

Conversation

cbellot000
Copy link
Contributor

No description provided.

@cbellot000 cbellot000 requested a review from PProfizi January 5, 2024 16:38
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (64b2a9b) 87.60% compared to head (b4eed50) 87.45%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1339      +/-   ##
==========================================
- Coverage   87.60%   87.45%   -0.16%     
==========================================
  Files          81       81              
  Lines        9262     9259       -3     
==========================================
- Hits         8114     8097      -17     
- Misses       1148     1162      +14     

assert data_tree.get_as("string", str) == "hello"
assert data_tree.get_as("list_int", dpf.types.vec_int) == [1, 2]
assert data_tree.get_as("list_double", dpf.types.vec_double) == [1.5, 2.5]
assert data_tree.get_as("list_string", dpf.types.vec_string) == ["hello", "bye"]
Copy link
Contributor

@PProfizi PProfizi Jan 8, 2024

Choose a reason for hiding this comment

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

@cbellot000 quick question: why is this not the default output type for a list of strings? Also could we have a description of the change in the PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The data tree doesn't hold typed data, it only holds string, so we can only return strings by default

@PProfizi PProfizi merged commit 2bc73f4 into master Jan 9, 2024
39 of 40 checks passed
@PProfizi PProfizi deleted the bug/data_tree_bool branch January 9, 2024 16:36
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.

2 participants