Skip to content

Commit ce9f11f

Browse files
committed
Merge branch 'master' into version1.0
2 parents 603976a + 0013319 commit ce9f11f

File tree

6 files changed

+28
-17
lines changed

6 files changed

+28
-17
lines changed

doc/index.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ odMLtables - Table-based editing of odML metadata collections
1010
Synopsis
1111
=========
1212

13-
*odMLtables* is a tool to support working with metadata collections for electrophysiological data.
13+
*odMLtables* is a tool to support working with metadata collections for electrophysiological data and is described in detail in `Sprenger et al. (2019) odMLtables: A User-Friendly Approach for Managing Metadata of Neurophysiological Experiments`_.
1414

15-
The odML_ file format and library API provides a means to store hierarchical metadata collections for electrophysiological data. Such collections typically consist of a large number of key-value pairs organized by a hierarchy of sections (see `Grewe et al, 2011, Frontiers in Neuroinformatics 5, 16`_). However, for editing and viewing metadata the use of standard spreadsheet software offering a flat tabular representation of a selected subset of metadata is desireable (cf., `Zehl et al, 2016, Frontiers in Neuroinformatics 10, 26`_). *odMLtables* provides a set of library functions as well as a graphical user interface that offers to swtich between hierarchical and flat representations of their metadata collection, and provides functions that assist in working with these files.
15+
The odML_ file format and library API provides a means to store hierarchical metadata collections for electrophysiological data. Such collections typically consist of a large number of key-value pairs organized by a hierarchy of sections (see `Grewe et al. (2011) Frontiers in Neuroinformatics 5:16`_). However, for editing and viewing metadata the use of standard spreadsheet software offering a flat tabular representation of a selected subset of metadata is desireable (cf., `Zehl et al. (2016) Frontiers in Neuroinformatics 10:26`_). *odMLtables* provides a set of library functions as well as a graphical user interface that offers to swtich between hierarchical and flat representations of their metadata collection, and provides functions that assist in working with these files.
1616

1717
Currently, odMLtables supports:
1818

@@ -43,9 +43,17 @@ Indices and tables
4343
* :ref:`search`
4444

4545

46+
Citation
47+
========
48+
If you are using *odMLtables* for your project please consider citing
49+
50+
`Sprenger J, Zehl L, Pick J, Sonntag M, Grewe J, Wachtler T, Grün S and Denker M (2019) odMLtables: A User-Friendly Approach for Managing Metadata of Neurophysiological Experiments. Front. Neuroinform. 13:62. doi: 10.3389/fninf.2019.00062`_
51+
52+
.. _`Sprenger et al. (2019) odMLtables: A User-Friendly Approach for Managing Metadata of Neurophysiological Experiments`: https://doi.org/10.3389/fninf.2019.00062
53+
.. _`Sprenger J, Zehl L, Pick J, Sonntag M, Grewe J, Wachtler T, Grün S and Denker M (2019) odMLtables: A User-Friendly Approach for Managing Metadata of Neurophysiological Experiments. Front. Neuroinform. 13:62. doi: 10.3389/fninf.2019.00062`: https://doi.org/10.3389/fninf.2019.00062
4654
.. _`odML`: http://www.g-node.org/projects/odml
47-
.. _`Grewe et al, 2011, Frontiers in Neuroinformatics 5, 16`: http://dx.doi.org/10.3389/fninf.2011.00016
48-
.. _`Zehl et al, 2016, Frontiers in Neuroinformatics 10, 26`: http://dx.doi.org/10.3389/fninf.2016.00026
55+
.. _`Grewe et al. (2011) Frontiers in Neuroinformatics 5:16`: http://dx.doi.org/10.3389/fninf.2011.00016
56+
.. _`Zehl et al. (2016) Frontiers in Neuroinformatics 10:26`: http://dx.doi.org/10.3389/fninf.2016.00026
4957

5058
.. |date| date::
5159
.. |time| date:: %H:%M

odmltables/VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0b3
1+
1.0.0

odmltables/compare_section_table.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ def load_from_file(self, load_from):
104104
105105
"""
106106
self._odmldoc = odml.load(load_from, show_warnings=self.show_odml_warnings)
107+
# resolve links and includes
108+
self._odmldoc.finalize()
107109

108110
def choose_sections_startwith(self, startwith):
109111
"""

odmltables/gui/compsectionpages.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ def initializePage(self):
210210

211211
# load sections and properties from the selected file
212212
odmldoc = odml.load(self.settings.get_object("inputfilename"))
213+
# resolve links and includes
214+
odmldoc.finalize()
213215
for section in odmldoc.itersections():
214216
self.sections.append([section.name,
215217
section.get_path(),

odmltables/odml_table.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def load_from_file(self, load_from):
124124
125125
"""
126126
doc = odml.load(load_from, show_warnings=self.show_odml_warnings)
127+
# resolve links and includes
128+
doc.finalize()
127129
self._odmldict = self.__create_odmldict(doc)
128130
self._docdict = self._create_documentdict(doc)
129131

setup.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
# -*- coding: utf-8 -*-
23

34
import sys, os, glob
@@ -26,7 +27,7 @@
2627
'installing the odmltables gui, eg. using "conda install -c anaconda '
2728
'\'pyqt>=5\'"')
2829

29-
VERSION = open('./odmltables/VERSION.txt', 'r').read()
30+
VERSION = open('./odmltables/VERSION.txt', 'r').read().strip()
3031

3132
setup(
3233
name="odmltables",
@@ -56,14 +57,10 @@
5657
zip_safe=False,
5758
keywords=['odml', 'excel', 'metadata management'],
5859
# Extension('foo', ['foo.c'], include_dirs=['.']),
59-
data_files=[
60-
# ('/usr/share/applications', ['odmltables.desktop']),
61-
# ('/usr/share/pixmaps', ['logo/odMLtables.png']),
62-
('share/pixmaps', glob.glob(os.path.join("logo", "*"))),
63-
# ('share/pixmaps', ['logo/odMLtables.png']),
64-
('.', ['odmltables/VERSION.txt',
65-
'requirements.txt',
66-
'requirements_doc.txt',
67-
'requirements_gui.txt',
68-
'requirements_test.txt'])]
69-
)
60+
data_files=[('share/pixmaps', glob.glob(os.path.join("logo", "*"))),
61+
('.', ['odmltables/VERSION.txt',
62+
'requirements.txt',
63+
'requirements_doc.txt',
64+
'requirements_gui.txt',
65+
'requirements_test.txt'])]
66+
)

0 commit comments

Comments
 (0)