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

API Add dictionary-like access for Branching and History readers #395

Merged

Conversation

drewejohnson
Copy link
Collaborator

BranchingReader.iterBranches is deprecated in favor of new items method

History

Much of this already existed, but this changes improves the get and iter methods. Special methods are also placed near the top of the class declaration as well.

The history reader test has been updated to test the contains, get,getitem, iter, and items methods. The getitem test has been merged into the special methods test

Branching

Provide len, contains, items, get, getitem methods that map back to the branches dictionary.

Some minor documentation fixes along the way

Much of this already existed, but this changes improves the
get and iter methods. Special methods are also placed near the
top of the class declaration as well.

The history reader test has been updated to test the contains,
get, __getitem__, iter, and items methods. The getitem test
has been merged into the special methods test
Provide len, contains, items, get, getitem methods that map
back to the branches dictionary.
@drewejohnson drewejohnson added documentation API - Compatible Changes to our API that require no user actions Deprecations Features slated for deprecation and removal labels Apr 2, 2020
@drewejohnson drewejohnson requested a review from DanKotlyar April 2, 2020 13:16
@drewejohnson drewejohnson merged commit b26f5ab into CORE-GATECH-GROUP:master Apr 2, 2020
@drewejohnson drewejohnson deleted the hist-branch-dictlike branch April 2, 2020 14:49
@drewejohnson drewejohnson added this to the 0.9.3 milestone Apr 16, 2020
drewejohnson added a commit to drewejohnson/serpent-tools that referenced this pull request May 23, 2020
Backport of features included since 0.9.3 release

Includes the following PRs

git log --online --pretty="%s" --merges 0.9.3...

Merge pull request CORE-GATECH-GROUP#407 from drewejohnson/fix-readme
Merge pull request CORE-GATECH-GROUP#406 from drewejohnson/r0.9.3
Merge pull request CORE-GATECH-GROUP#405 from nicoloabrate/master
Merge pull request CORE-GATECH-GROUP#404 from drewejohnson/update-git-attr
Merge pull request CORE-GATECH-GROUP#402 from drewejohnson/xsplot-labels
Merge pull request CORE-GATECH-GROUP#400 from drewejohnson/lib2-notes
Merge pull request CORE-GATECH-GROUP#399 from CORE-GATECH-GROUP/docs-sphinx-2.0
Merge pull request CORE-GATECH-GROUP#397 from drewejohnson/port-list-of-arrays
Merge pull request CORE-GATECH-GROUP#398 from drewejohnson/det-supers
Merge pull request CORE-GATECH-GROUP#396 from drewejohnson/df-arg-renaming
Merge pull request CORE-GATECH-GROUP#394 from drewejohnson/0.9.3-update-docs
Merge pull request CORE-GATECH-GROUP#395 from drewejohnson/hist-branch-dictlike
Merge pull request CORE-GATECH-GROUP#393 from drewejohnson/less-metadata
Merge pull request CORE-GATECH-GROUP#392 from drewejohnson/better-access
Merge pull request CORE-GATECH-GROUP#391 from drewejohnson/dep-dataframe
Merge pull request CORE-GATECH-GROUP#390 from drewejohnson/api-dep-attributes
Merge pull request CORE-GATECH-GROUP#388 from drewejohnson/xsplot-branch
Merge pull request CORE-GATECH-GROUP#378 from drewejohnson/better-build
Merge pull request CORE-GATECH-GROUP#376 from drewejohnson/unbundle-data-files
Merge pull request CORE-GATECH-GROUP#370 from drewejohnson/results-loa
Merge pull request CORE-GATECH-GROUP#369 from drewejohnson/merge-0.9.1-develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API - Compatible Changes to our API that require no user actions Deprecations Features slated for deprecation and removal documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants