Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #153 from bpoldrack/prep-release
Browse files Browse the repository at this point in the history
Prepare release 0.0.5
  • Loading branch information
bpoldrack committed Jan 8, 2020
2 parents 67d546b + d1de877 commit 82ce210
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ would recommend to consult log of the [Git
repository](http://github.com/psychoinformatics-de/datalad-hirni) for more
details.

## 0.0.5 (January 8, 2020)
- lots of bugfixes
- enhance documentation
- work with datalad >= 0.12.0rc6

## 0.0.3 (May 24, 2019) -- We're getting there
- rework rule system for easier customization and configurability
- config routine setup_hirni_dataset renamed to cfg_hirni
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ a dedicated [virtualenv](https://virtualenv.pypa.io):

The documentation of this project is found here:
http://docs.datalad.org/projects/hirni
The documentation is built from this very repository's files under ``docs/source`` and thus you can contribute to the
docs by opening a pull request just like you'd contribute to the code itself.

All bugs, concerns and enhancement requests for this software can be submitted here:
https://github.com/psychoinformatics-de/datalad-hirni/issues
Expand Down
13 changes: 9 additions & 4 deletions datalad_hirni/commands/dicom2spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,10 +464,15 @@ def __call__(path=None, spec=None, dataset=None, subject=None,
# spec_series_list = sorted(spec_series_list, key=lambda x: sort_spec(x))
json_py.dump2stream(spec_series_list, spec)

# make sure spec is in git:
dataset.repo.set_gitattributes([(spec,
{'annex.largefiles': 'nothing'})],
'.gitattributes')
# make sure spec is tracked in git:
spec_attrs = dataset.repo.get_gitattributes(spec)
spec_relpath = op.relpath(spec, dataset.path)
if spec_relpath not in spec_attrs.keys() or \
'annex.largefiles' not in spec_attrs[spec_relpath].keys() or \
spec_attrs[spec_relpath]['annex.largefiles'] != 'nothing':
dataset.repo.set_gitattributes([(spec,
{'annex.largefiles': 'nothing'})],
'.gitattributes')

for r in Save.__call__(dataset=dataset,
path=[spec, '.gitattributes'],
Expand Down
5 changes: 4 additions & 1 deletion datalad_hirni/tests/test_demos.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
ok_file_under_git,
assert_repo_status,
assert_true,
skip_if_on_windows
skip_if_on_windows,
SkipTest
)


Expand Down Expand Up @@ -169,6 +170,8 @@ def test_demo_repro_analysis(bids_path, ana_path):
message="Build FSL EV3 design files"
)

raise SkipTest("Solve datalad-containers #115")

analysis_ds.containers_add('fsl', url="shub://ReproNim/ohbm2018-training:fsln")
# % datalad containers-list

Expand Down
6 changes: 6 additions & 0 deletions datalad_hirni/tests/test_dicom2spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,9 @@ def test_dicom2spec(path):
assert_result_count(res, 1, path=op.join(ds.path, 'spec_structural.json'))
assert_result_count(res, 1, path=op.join(ds.path, '.gitattributes'))
ok_clean_git(ds.path)

# multiple execution shouldn't change .gitattributes again:
from os import stat
mtime = stat(op.join(ds.path, '.gitattributes')).st_mtime
res = ds.hirni_dicom2spec(path='acq100', spec='spec_structural.json')
assert_equal(stat(op.join(ds.path, '.gitattributes')).st_mtime, mtime)
7 changes: 7 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ We would recommend to consult log of the `Git
repository <http://github.com/psychoinformatics-de/datalad-hirni>`__ for
more details.

0.0.5 (January 8, 2020)
-----------------------

- lots of bugfixes
- enhance documentation
- work with datalad >= 0.12.0rc6

0.0.3 (May 24, 2019) – We’re getting there
------------------------------------------

Expand Down
6 changes: 5 additions & 1 deletion docs/source/concepts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ the conversion command. That way the default defacing - which also can be replac
implemented, for example.


For a more detailed explanation of how it works and how to approach customization, you might be interested in watching
this talk_.


.. _dataset: https://datalad.readthedocs.io/en/latest/glossary.html
.. _run: https://datalad.readthedocs.io/en/latest/generated/man/datalad-run.html
.. _YODA: https://doi.org/10.7490/f1000research.1116363.1

.. _talk: https://vimeo.com/380036896/afaf850c38

0 comments on commit 82ce210

Please sign in to comment.