Skip to content

Commit

Permalink
fix README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsavio committed Feb 24, 2016
1 parent 8b98f15 commit 0d4f756
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -436,13 +436,16 @@ set the ``regex`` argument to ``'re'`` or ``'re.ignorecase'`` in the constructor
...
The regular expressions can be checked with the `patterns` property.
.. code:: python
>>> print(s0_imgs.patterns)
{'session_id': '^.*_0$', 'modality': '', 'image': '', 'subject_id': ''}
And can be also modified with the `set_pattern` function.
.. code:: python
>>> s0_imgs.set_pattern('modality', 'a.*')
>>> print(s0_imgs.patterns)
{'session_id': '^.*_0$', 'modality': 'a.*', 'image': '', 'subject_id': ''}
Expand Down

0 comments on commit 0d4f756

Please sign in to comment.