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

Add export_spec utility function for use by extensions template #170

Merged
merged 3 commits into from
Oct 9, 2019

Conversation

rly
Copy link
Contributor

@rly rly commented Oct 9, 2019

Motivation

The https://github.com/nwb-extensions/ndx-template includes a utility function export_spec that is intended not to be touched by the user. It should live elsewhere, and since it is a general purpose function regarding exporting extension specs, it should live in HDMF. This PR moves an adapted export_spec function to HDMF, adds a test, and refactors the existing spec tests.

@codecov
Copy link

codecov bot commented Oct 9, 2019

Codecov Report

Merging #170 into dev will increase coverage by 0.05%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #170      +/-   ##
==========================================
+ Coverage   69.97%   70.02%   +0.05%     
==========================================
  Files          30       30              
  Lines        5785     5802      +17     
  Branches     1363     1367       +4     
==========================================
+ Hits         4048     4063      +15     
- Misses       1302     1303       +1     
- Partials      435      436       +1
Impacted Files Coverage Δ
src/hdmf/spec/write.py 77.39% <88.88%> (+1.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8a6c650...956cf13. Read the comment docs.

oruebel
oruebel previously approved these changes Oct 9, 2019
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