Skip to content

Commit

Permalink
Merge branch 'master' into version1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaSprenger committed Sep 27, 2019
2 parents 603976a + 0013319 commit ce9f11f
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 17 deletions.
16 changes: 12 additions & 4 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ odMLtables - Table-based editing of odML metadata collections
Synopsis
=========

*odMLtables* is a tool to support working with metadata collections for electrophysiological data.
*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`_.

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.
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.

Currently, odMLtables supports:

Expand Down Expand Up @@ -43,9 +43,17 @@ Indices and tables
* :ref:`search`


Citation
========
If you are using *odMLtables* for your project please consider citing

`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`_

.. _`Sprenger et al. (2019) odMLtables: A User-Friendly Approach for Managing Metadata of Neurophysiological Experiments`: https://doi.org/10.3389/fninf.2019.00062
.. _`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
.. _`odML`: http://www.g-node.org/projects/odml
.. _`Grewe et al, 2011, Frontiers in Neuroinformatics 5, 16`: http://dx.doi.org/10.3389/fninf.2011.00016
.. _`Zehl et al, 2016, Frontiers in Neuroinformatics 10, 26`: http://dx.doi.org/10.3389/fninf.2016.00026
.. _`Grewe et al. (2011) Frontiers in Neuroinformatics 5:16`: http://dx.doi.org/10.3389/fninf.2011.00016
.. _`Zehl et al. (2016) Frontiers in Neuroinformatics 10:26`: http://dx.doi.org/10.3389/fninf.2016.00026

.. |date| date::
.. |time| date:: %H:%M
2 changes: 1 addition & 1 deletion odmltables/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0b3
1.0.0
2 changes: 2 additions & 0 deletions odmltables/compare_section_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ def load_from_file(self, load_from):
"""
self._odmldoc = odml.load(load_from, show_warnings=self.show_odml_warnings)
# resolve links and includes
self._odmldoc.finalize()

def choose_sections_startwith(self, startwith):
"""
Expand Down
2 changes: 2 additions & 0 deletions odmltables/gui/compsectionpages.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ def initializePage(self):

# load sections and properties from the selected file
odmldoc = odml.load(self.settings.get_object("inputfilename"))
# resolve links and includes
odmldoc.finalize()
for section in odmldoc.itersections():
self.sections.append([section.name,
section.get_path(),
Expand Down
2 changes: 2 additions & 0 deletions odmltables/odml_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def load_from_file(self, load_from):
"""
doc = odml.load(load_from, show_warnings=self.show_odml_warnings)
# resolve links and includes
doc.finalize()
self._odmldict = self.__create_odmldict(doc)
self._docdict = self._create_documentdict(doc)

Expand Down
21 changes: 9 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

VERSION = open('./odmltables/VERSION.txt', 'r').read()
VERSION = open('./odmltables/VERSION.txt', 'r').read().strip()

setup(
name="odmltables",
Expand Down Expand Up @@ -56,14 +57,10 @@
zip_safe=False,
keywords=['odml', 'excel', 'metadata management'],
# Extension('foo', ['foo.c'], include_dirs=['.']),
data_files=[
# ('/usr/share/applications', ['odmltables.desktop']),
# ('/usr/share/pixmaps', ['logo/odMLtables.png']),
('share/pixmaps', glob.glob(os.path.join("logo", "*"))),
# ('share/pixmaps', ['logo/odMLtables.png']),
('.', ['odmltables/VERSION.txt',
'requirements.txt',
'requirements_doc.txt',
'requirements_gui.txt',
'requirements_test.txt'])]
)
data_files=[('share/pixmaps', glob.glob(os.path.join("logo", "*"))),
('.', ['odmltables/VERSION.txt',
'requirements.txt',
'requirements_doc.txt',
'requirements_gui.txt',
'requirements_test.txt'])]
)

0 comments on commit ce9f11f

Please sign in to comment.