Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Make special attributes accessible by name only. #949

Merged
merged 2 commits into from
Nov 13, 2017
Merged

Conversation

DennisHeimbigner
Copy link
Contributor

Re: git issue #948

Currently, special attributes like _NCProperties are visible
when iterating thru the attributes of the root group.
This pr changes that so that they are suppressed when using
Group.getAttributes(). They can still be accessed by name using
Group.findAttribute(String name).
This change enforces the similar rule used in the netcdf-C library.

Added a test dataset and a test case for this change.

Re: git issue #948

Currently, special attributes like _NCProperties are visible
when iterating thru the attributes of the root group.
This pr changes that so that they are suppressed when using
Group.getAttributes(). They can still be accessed by name using
Group.findAttribute(String name).
This change enforces the similar rule used in the netcdf-C library.

Added a test dataset and a test case for this change.
DennisHeimbigner added a commit that referenced this pull request Nov 11, 2017
Re: git pull request #949
Re: git issue #948

This adds the change of pull request #949
to branch 5.0.0. Changes in 5.0 code make it impossible to cherry pick.

From master pull request:
Currently, special attributes like _NCProperties are visible
when iterating thru the attributes of the root group.
This pr changes that so that they are suppressed when using
Group.getAttributes(). They can still be accessed by name using
Group.findAttribute(String name).
This change enforces the similar rule used in the netcdf-C library.

Added a test dataset and a test case for this change.
@lesserwhirls lesserwhirls merged commit 17eef01 into master Nov 13, 2017
@DennisHeimbigner DennisHeimbigner deleted the specials.dmh branch November 13, 2017 20:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants