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

Create basic (lower) level interface for attributes (for new feature #920) #921

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

J007X
Copy link
Collaborator

@J007X J007X commented Feb 14, 2023

This PR fixes #920.

Description of changes

(In this phase-1,) Interface methods are added to the "Data_Store" level to provide basic services that expand the previous service/methods by allowing batch-like, range selection of attributes from one or more entries (such as with one or more tid, or type-specific)

Possible influences of this PR.

This provides a new attribute based interface without the cost of packing and unpacking into classes for quicker attribute access (such as for entries). Do we need to restrict access in some ways?

Test Conducted

Corresponding unit tests are created.

…s at Data_Store level (3 methods added, and corresponding unit test codes
@J007X J007X self-assigned this Feb 14, 2023
@codecov
Copy link

codecov bot commented Mar 22, 2023

Codecov Report

Merging #921 (36a7c56) into master (35c1ced) will increase coverage by 0.01%.
The diff coverage is 84.46%.

@@            Coverage Diff             @@
##           master     #921      +/-   ##
==========================================
+ Coverage   81.06%   81.07%   +0.01%     
==========================================
  Files         256      256              
  Lines       19858    19961     +103     
==========================================
+ Hits        16097    16184      +87     
- Misses       3761     3777      +16     
Impacted Files Coverage Δ
forte/data/data_store.py 91.59% <76.47%> (-1.72%) ⬇️
tests/forte/data/data_store_test.py 95.96% <100.00%> (+0.38%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

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.

Create interface (such as for Entry) to extract attributes (especially in massive settings) directly
2 participants