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 script to update schema files and update files #506

Closed
wants to merge 5 commits into from

Conversation

jcfr
Copy link
Collaborator

@jcfr jcfr commented Apr 28, 2018

No description provided.

jcfr and others added 5 commits April 28, 2018 00:23
* Allow the script to be executed from anywhere
* snapshot_relative_path can now be set to the directory where the
  files should be integrated
* Initial import updated to work with non-empty directory
Run the UpdateFromUpstream.sh script to extract upstream nwb-schema
using the following shell commands.

$ git archive --prefix=upstream-nwb-schema/ e1f52504 -- 
  core
   | tar x


Initial import of e1f52504b3c3b050ab54bb6fbf0e6a818f537c0f
* upstream-nwb-schema:
  nwb-schema 2018-04-26 (e1f52504)

# Conflicts:
#	src/pynwb/data/nwb.file.yaml
#	src/pynwb/data/nwb.ogen.yaml
@jcfr
Copy link
Collaborator Author

jcfr commented Apr 28, 2018

github_compare=true

snapshot_author_name='nwb-schema Upstream'
snapshot_author_email='neurodatawithoutborders@googlegroups.com'
Copy link
Collaborator Author

@jcfr jcfr Apr 28, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oruebel I suggest we associate the email neurodatawithoutborders@googlegroups.com with @nwb-bot

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oruebel If this sounds reasonable, is it something you could do ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jcfr what is the purpose of linking nwb-bot to the googlegroup?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows to have commit message done by the bot to have an email, allowing it to link back to the bot account.

The email doesn't have to be verified, it should just be added in the settings.

@codecov
Copy link

codecov bot commented Apr 28, 2018

Codecov Report

Merging #506 into dev will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #506      +/-   ##
==========================================
- Coverage   71.47%   71.45%   -0.02%     
==========================================
  Files          57       57              
  Lines        6099     6099              
  Branches     1173     1173              
==========================================
- Hits         4359     4358       -1     
  Misses       1422     1422              
- Partials      318      319       +1
Impacted Files Coverage Δ
src/pynwb/form/utils.py 80.18% <0%> (-0.32%) ⬇️

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 0742456...641980b. Read the comment docs.

@jcfr
Copy link
Collaborator Author

jcfr commented Apr 28, 2018

@lawrence I am planning to update matnwb adding a script similar to src/pynwb/data/UpdateFromUpstream.sh

@rly
Copy link
Contributor

rly commented Jul 31, 2019

Our current workflow is to make changes to the schema in pynwb and then copy those over to nwb-schema. This PR would add a script to do the reverse - it copies the schema from nwb-schema over to pynwb. As such, we are closing this PR. We could change the script to do the reverse if this is desired.

@rly rly closed this Jul 31, 2019
@oruebel oruebel deleted the add-schema-update-script-and-update-schema branch March 3, 2020 18:51
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.

3 participants