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

Feature/access metadata details #73

Merged
merged 6 commits into from
Jun 12, 2017

Conversation

tomalrussell
Copy link
Member

[Delivers #146028125]

Allows SectorModel to access the members of the temporal and spatial resolutions for each of the inputs and outputs defined in the model configuration.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 95.921% when pulling 6543c22 on tomalrussell:feature/access-metadata-details into ae0bedb on nismod:master.

- move tests for both to tests/test_metadata.py
- MetadataSet.get_metadata_item renamed to __getitem__ allowing dict-style access
- involves injecting a reference to a RegionRegister and a TimeIntervalRegister
when creating a Metadata object
- then we can expose the list of region or interval names associated with the
spatial and temporal resolution of the Metadata item (which describes a single
dataset with observations for each of those regions and intervals)
…adata

- API for accessing region and interval names goes via SectorModel.inputs
or .outputs
- code for accessing the metadata is exercised by EDMWrapper, approximating
an integration test.
- `smif -v run tests/fixtures/single_run/config/model.yaml` will run the model
and log inputs and outputs with metadata a INFO level.
@tomalrussell tomalrussell force-pushed the feature/access-metadata-details branch from 6543c22 to 48aec54 Compare June 9, 2017 14:48
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 95.921% when pulling 48aec54 on tomalrussell:feature/access-metadata-details into ae0bedb on nismod:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 95.931% when pulling 556985b on tomalrussell:feature/access-metadata-details into ae0bedb on nismod:master.

@willu47 willu47 merged commit 7cfd332 into nismod:master Jun 12, 2017
@tomalrussell tomalrussell deleted the feature/access-metadata-details branch June 15, 2017 13:47
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.

None yet

3 participants