Skip to content

Commit

Permalink
- fix: missing title in FD window and missing FD number in export menu
Browse files Browse the repository at this point in the history
 - docs: add quick guide for importing a nanite training set
 - docs: add black/white logo
  • Loading branch information
paulmueller committed Sep 10, 2019
1 parent 190d250 commit 9946f62
Show file tree
Hide file tree
Showing 11 changed files with 156 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.5.1
- fix: missing title in FD window and missing FD number in export menu
- docs: add quick guide for importing a nanite training set
- docs: add black/white logo
0.5.0
- feat: allow to import training sets produced with nanite
- ref: major code refactoring of force-distance interface and cleanup
Expand Down
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _index:


.. image:: logo/PyJibe.png
.. image:: logo/PyJibe_bw.png

|
Expand All @@ -19,6 +19,7 @@ Documentation
:maxdepth: 2

sec_getting_started
sec_quick_guides

.. toctree::
:maxdepth: 1
Expand Down
12 changes: 6 additions & 6 deletions docs/logo/PyJibe.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/logo/PyJibe_bw.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 92 additions & 0 deletions docs/logo/PyJibe_bw.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion docs/pyjibe.bib
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
% Encoding: UTF-8
@Article{zef18,
author = {Paul Müller and Stephanie Möllmert and Jochen Guck},
title = {{Atomic force microscopy indentation data of zebrafish spinal cord sections}},
journal = {Figshare},
year = {2018},
month = {11},
doi = {10.6084/m9.figshare.7297202.v1},
}
Binary file added docs/scrots/qg_import_ts.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions docs/sec_qg_import_ts.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.. _sec_qg_import_ts:

=====================================
Importing a pre-computed training set
=====================================

A training set is a set of text files containing rating features
and manual user ratings. Training sets are the basis of the rating
scheme employed in PyJibe (and nanite). By default, PyJibe
comes with the *zef18* training set :cite:`zef18`. For general information
about how manual rating and generation of the training set works, please
refer to the :ref:`nanite rating workflow <nanite:sec_rating>`.

In order to import a training set into PyJibe,
the text files (``train_feat_*.txt`` and ``train_response.txt``) must be
zipped and named according to the scheme
``ts_NAME.zip``, where ``NAME`` is a descriptive name.

.. image:: scrots/qg_import_ts.png
:target: _images/qg_import_ts.png
:align: right
:scale: 100%

The import in PyJibe is carried out by selecting *Add...* in the
*Scheme* dropdown menu, located in the *Curve rating* box
(lower right of a Force-Distance analysis).
A dialog will ask for the zipped training set (e.g. ``ts_organoids19.zip``).

The import is persistent, i.e. the training set is extracted to the
user's configuration directory and thus does not have to be imported
again the next time PyJibe is run.

9 changes: 9 additions & 0 deletions docs/sec_quick_guides.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
============
Quick Guides
============

.. toctree::
:maxdepth: 2
:caption: Contents:

sec_qg_import_ts
5 changes: 2 additions & 3 deletions pyjibe/fd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ def __init__(self, *args, **kwargs):
uic.loadUi(path_ui, self)

UiForceDistance._instance_counter += 1
title = "{} #{}".format(self.parent().windowTitle(),
self._instance_counter)
title = "Force-Distance #{}".format(self._instance_counter)
self.parent().setWindowTitle(title)

self.data_set = nanite.IndentationGroup()
Expand Down Expand Up @@ -522,7 +521,7 @@ def rating_scheme_setup(self):
self.cb_rating_scheme.clear()
schemes = rating_base.get_rating_schemes()
self.cb_rating_scheme.addItems(list(schemes.keys()))
self.cb_rating_scheme.addItem("Import...")
self.cb_rating_scheme.addItem("Add...")


class AbortProgress(BaseException):
Expand Down
2 changes: 1 addition & 1 deletion pyjibe/head/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def add_subwindow(self, aclass, flist):
# Add export choices
if hasattr(inst, "get_export_choices"):
choices = inst.get_export_choices()
menobj = self.menuExport.addMenu(inst.windowTitle())
menobj = self.menuExport.addMenu(sub.windowTitle())
for choice in choices:
action = menobj.addAction(choice[0])
action.triggered.connect(getattr(inst, choice[1]))
Expand Down

0 comments on commit 9946f62

Please sign in to comment.