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

Small bug fixes #10

Merged
merged 4 commits into from
Aug 16, 2018
Merged

Small bug fixes #10

merged 4 commits into from
Aug 16, 2018

Conversation

yarikoptic
Copy link
Member

@yarikoptic yarikoptic commented Jul 31, 2018

  • now seems to have to use incremental=True while aggregating metadata for the subdataset all the way to the top. @mih please verify that this is expected (was not needed before). Without it it would drop metadata for any other present subdataset in the dataset's superdatasets
  • use legacy. of openfmri for crawling (although nothing new is expected there)
  • fix metadata fetching for CRCNS (Fixes CRCNS metadata fetching needs fixups #15 )

since now openfmri.org forwards to openneuro and we do not
crawl that one (yet or ever)
Otherwise it just drops aggregated data for any other subdataset
in the corresponding superdatasets
@yarikoptic yarikoptic requested a review from mih July 31, 2018 02:23
dataset='^',
path=self.repo.path,
update_mode='all',
incremental=True)
Copy link
Member Author

Choose a reason for hiding this comment

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

@mih, what is currently a use case for having all "neighboring" subdatasets in superdatasets to loose their metadata whenever I aggregate without incremental=True?

Copy link
Member Author

Choose a reason for hiding this comment

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

@mih -- with incremental which I have to use so other subdatasets do not loose their metadata, now tests fail (e.g. https://travis-ci.org/datalad/datalad-crawler/jobs/410135254) .
I think things need fix ups on datalad side so https://github.com/datalad/datalad/issues/2772 . Meanwhile I will fixup here by assuming that may be pruning of old objects would come in the same commit as updating them, so count would decrease ;-)

@codecov-io
Copy link

codecov-io commented Aug 16, 2018

Codecov Report

Merging #10 into master will decrease coverage by 0.02%.
The diff coverage is 90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
- Coverage   86.76%   86.74%   -0.03%     
==========================================
  Files          50       50              
  Lines        4111     4112       +1     
==========================================
  Hits         3567     3567              
- Misses        544      545       +1
Impacted Files Coverage Δ
datalad_crawler/pipelines/openfmri.py 85% <100%> (ø) ⬆️
datalad_crawler/nodes/annex.py 81.66% <100%> (ø) ⬆️
datalad_crawler/pipelines/tests/test_openfmri.py 91.38% <100%> (ø) ⬆️
datalad_crawler/pipelines/crcns.py 73.11% <75%> (-0.8%) ⬇️

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 d5f34fa...3f30bfd. Read the comment docs.

@yarikoptic
Copy link
Member Author

will be merged if tests pass - need other fixes on top.

@yarikoptic
Copy link
Member Author

ha ha -- I thought to submit crcns fix in a different PR but apparently has to come here, so here it comes!

@yarikoptic
Copy link
Member Author

Foi
I had to restart python 3.6 run because of that issue with attr and converter being undefined. It is appearing from time to time while importing scrapy - may be there is some late bindings and race condition

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.

CRCNS metadata fetching needs fixups
2 participants