Skip to content

Commit 8cb8a9a

Browse files
committed
[docs] more on file upgrading
1 parent ca32f0a commit 8cb8a9a

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

docs/source/news.rst

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,29 @@ Changes in version 1.5
33
######################
44

55
With version 1.5 we introduced several changes on the library as well as on the data model side (nix model version 1.2). Some are even breaking changes.
6-
1.5 libraries can open files that have been written with pre 1.5 libraries. Old files cannot be opened for ReadWrite access.
7-
You may want to convert such files using the ``nixio`` command line tool that comes with the library.
6+
1.5 libraries can open files that have been written with pre 1.5 libraries. Old files cannot be opened for ``ReadWrite`` access.
7+
You may want to convert such files using the ``nixio`` command line tool that comes with the library or via also implement upgrade into a script.
88

99
.. code-block:: bash
1010
1111
nixio upgrade --help
1212
13+
.. code-block:: python
14+
15+
import nixio
16+
filename = "test.nix"
17+
nixio.file_upgrade(filename, quiet=False)
18+
19+
Pass ``quiet=False`` in order to get some feedback on what the tool did. **Note** Files are replaced *in place*. Make sure to backup your files before upgrading.
20+
1321
Model changes
1422
#############
1523

16-
* the metadata model was simplified and reflects the changes introduced to the underlying **odml** data model. Accordingly the *Value* entity does no longer exist. New versions of the library can read but not write old data.
17-
* New *DataFrame* entity
24+
* the metadata model was simplified to reflects the changes introduced to the underlying **odml** data model. Accordingly the *Value* entity does no longer exist. New versions of the library can read but not write old data.
25+
* New *DataFrame* entity.
1826
* *Tags* and *MultiTags* can link to DataFrames as features.
1927
* *RangeDimension* can link to DataFrames as source for the ticks.
28+
* *AliasRangeDimension* has been removed, the equivalent can be achieved with linking to a *DataArray*.
2029

2130
The *DataFrame*
2231
###############
@@ -26,8 +35,8 @@ The *DataFrame* is a new entity that stored tabular data. Each column has a name
2635
*RangeDimension*
2736
################
2837

29-
* *RangeDimensions* ticks can now be stored within the dimension descriptor, or in linked DataArrays or DataFrames. Ticks must still be one-dimensional. (see :ref:`RangeDimension` for more information)
30-
* Because of the above change, the former "AliasRangeDimension" is no longer needed. The same functionality is achieved by linking the *RangeDimension* to the *DataArray* itself.
38+
* *RangeDimensions* ticks can now be stored within the dimension descriptor, or in linked DataArrays or DataFrames. Ticks must still be one-dimensional (see :ref:`RangeDimension` for more information).
39+
* Because of the above change, the former *AliasRangeDimension* is no longer needed. The same functionality is achieved by linking the *RangeDimension* to the *DataArray* itself.
3140

3241
API changes
3342
###########

0 commit comments

Comments
 (0)