straditize.widgets.tutorial.hoya_del_castillo module¶
The tutorial of straditize
This module contains an advanced guided tour through straditize
Disclaimer
Copyright (C) 2018-2019 Philipp S. Sommer
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Classes
|
The page for recognizing column names |
|
Tutorial page for column names with tesserocr support |
|
Tutorial page for editing the meta attributes |
|
A tutorial for digitizing an area diagram |
|
|
|
Tutorial page for removing horizontal and vertical lines |
|
TutorialPage for selecting the data part |
|
The page for separating the columns |
|
The tutorial page for translating the x-axes |
|
The tutorial page for translating the y-axis |
|
|
-
class
straditize.widgets.tutorial.hoya_del_castillo.
ColumnNames
(filename, tutorial)[source]¶ Bases:
straditize.widgets.tutorial.beginner.ColumnNames
The page for recognizing column names
- Parameters
Attributes
Built-in mutable sequence.
bool(x) -> bool
-
column_names
= ['Charcoal', 'Pinus', 'Juniperus', 'Quercus ilex-type', 'Quercus suber-type', 'Olea', 'Betula', 'Corylus', 'Carpinus-type', 'Ericaceae', 'Ephedra distachya-type', 'Ephedra fragilis', 'Mentha-type', 'Anthemis-type', 'Artemisia', 'Caryophyllaceae', 'Chenopodiaceae', 'Cruciferae', 'Filipendula', 'Gramineae <40um', 'Gramineae >40<50um', 'Gramineae >50<60um', 'Gramineae >60um', 'Liguliflorae', 'Plantago coronopus', 'Pteridium', 'Filicales', 'Pollen Concentration']¶
-
class
straditize.widgets.tutorial.hoya_del_castillo.
ColumnNamesOCR
(filename, tutorial)[source]¶ Bases:
straditize.widgets.tutorial.hoya_del_castillo.ColumnNames
Tutorial page for column names with tesserocr support
- Parameters
Attributes
Built-in mutable sequence.
Built-in mutable sequence.
Methods
hint_for_wrong_name
(col, curr, ref)Display a hint if a name is not correctly set
-
colpic_extents
= [(1051, 1127, 573, 588), (1176, 1225, 704, 719), (1338, 1422, 866, 884), (1437, 1584, 964, 982), (1490, 1655, 1016, 1034), (1511, 1550, 1038, 1052), (1533, 1587, 1061, 1075), (1557, 1621, 1083, 1102), (1580, 1699, 1105, 1123), (1600, 1686, 1123, 1138), (1623, 1828, 1151, 1169), (1646, 1783, 1173, 1192), (1665, 1779, 1195, 1215), (1689, 1811, 1218, 1237), (1711, 1793, 1240, 1254), (1766, 1909, 1288, 1306), (1788, 1934, 1310, 1328), (1841, 1929, 1363, 1378), (1862, 1957, 1390, 1407), (1885, 2045, 1407, 1422), (1922, 2116, 1444, 1459), (1945, 2138, 1467, 1482), (1968, 2128, 1490, 1505), (1990, 2083, 1512, 1531), (2012, 2186, 1540, 1559), (2035, 2117, 1563, 1577), (2056, 2126, 1584, 1599), (2080, 2259, 1601, 1616)]¶
-
colpic_sizes
= [(270, 88), (189, 88), (307, 109), (494, 109), (550, 109), (159, 85), (204, 85), (249, 112), (363, 60), (264, 48), (655, 109), (411, 57), (336, 69), (424, 116), (286, 85), (487, 112), (493, 109), (309, 88), (297, 51), (523, 88), (624, 89), (624, 89), (525, 89), (333, 112), (574, 109), (289, 88), (254, 88), (581, 89)]¶
-
class
straditize.widgets.tutorial.hoya_del_castillo.
EditMeta
(filename, tutorial)[source]¶ Bases:
straditize.widgets.tutorial.hoya_del_castillo.TutorialPage
Tutorial page for editing the meta attributes
- Parameters
Methods
hint
()A method that should display a hint to the user
skip
()Skip the steps in this page
Attributes
Boolean that is True, if the steps are all finished
-
property
is_finished
¶ Boolean that is True, if the steps are all finished
-
class
straditize.widgets.tutorial.hoya_del_castillo.
HoyaDelCastilloTutorial
(straditizer_widgets)[source]¶ Bases:
straditize.widgets.tutorial.beginner.Tutorial
A tutorial for digitizing an area diagram
Methods
Setup the
pages
attribute and initialize the tutorial pagesshow
()Show the documentation of the tutorial
Attributes
str(object=’’) -> str
str(object=’’) -> str
str(object=’’) -> str
-
src_base
= 'hoya-del-castillo.png'¶
-
src_dir
= '/home/docs/checkouts/readthedocs.org/user_builds/straditize/checkouts/stable/straditize/widgets/tutorial/hoya-del-castillo'¶
-
src_file
= '/home/docs/checkouts/readthedocs.org/user_builds/straditize/checkouts/stable/straditize/widgets/tutorial/hoya-del-castillo/hoya-del-castillo.png'¶
-
-
class
straditize.widgets.tutorial.hoya_del_castillo.
LoadImage
(filename, tutorial)[source]¶ Bases:
straditize.widgets.tutorial.beginner.LoadImage
,straditize.widgets.tutorial.hoya_del_castillo.TutorialPage
-
class
straditize.widgets.tutorial.hoya_del_castillo.
RemoveLines
(filename, tutorial)[source]¶ Bases:
straditize.widgets.tutorial.hoya_del_castillo.TutorialPage
Tutorial page for removing horizontal and vertical lines
- Parameters
Methods
activate
()Method that is called, when the page is activated
Method that is called, when the page is deactivated
hint
()A method that should display a hint to the user
skip
()Skip the steps in this page
Attributes
bool(x) -> bool
Boolean that is True, if the steps are all finished
bool(x) -> bool
-
property
is_finished
¶ Boolean that is True, if the steps are all finished
-
class
straditize.widgets.tutorial.hoya_del_castillo.
SelectDataPart
(filename, tutorial)[source]¶ Bases:
straditize.widgets.tutorial.beginner.SelectDataPart
TutorialPage for selecting the data part
- Parameters
Attributes
The reference x- and y- limits
bool(x) -> bool
Valid ranges for xmin and xmax
Valid ranges for ymin and ymax
-
ref_lims
= array([[ 315, 1946], [ 511, 1311]])¶ The reference x- and y- limits
-
remove_data_box
= False¶
-
valid_xlims
= array([[ 310, 319], [1928, 1960]])¶ Valid ranges for xmin and xmax
-
valid_ylims
= array([[ 508, 513], [1307, 1312]])¶ Valid ranges for ymin and ymax
-
class
straditize.widgets.tutorial.hoya_del_castillo.
SeparateColumns
(filename, tutorial)[source]¶ Bases:
straditize.widgets.tutorial.beginner.SeparateColumns
The page for separating the columns
- Parameters
Attributes
int([x]) -> integer
-
ncols
= 28¶
-
class
straditize.widgets.tutorial.hoya_del_castillo.
TranslateXAxis
(filename, tutorial)[source]¶ Bases:
straditize.widgets.tutorial.hoya_del_castillo.TutorialPage
The tutorial page for translating the x-axes
- Parameters
Methods
activate
()Method that is called, when the page is activated
Method that is called, when the page is deactivated
hint
()A method that should display a hint to the user
hint_for_col
(col)refresh
()skip
()Skip the steps in this page
Attributes
Built-in mutable sequence.
Boolean that is True, if the steps are all finished
bool(x) -> bool
-
property
is_finished
¶ Boolean that is True, if the steps are all finished
-
class
straditize.widgets.tutorial.hoya_del_castillo.
TranslateYAxis
(filename, tutorial)[source]¶ Bases:
straditize.widgets.tutorial.hoya_del_castillo.TutorialPage
The tutorial page for translating the y-axis
- Parameters
Methods
activate
()Method that is called, when the page is activated
Method that is called, when the page is deactivated
hint
()A method that should display a hint to the user
skip
()Skip the steps in this page
Attributes
bool(x) -> bool
Boolean that is True, if the steps are all finished
-
property
is_finished
¶ Boolean that is True, if the steps are all finished
-
class
straditize.widgets.tutorial.hoya_del_castillo.
TutorialPage
(filename, tutorial)[source]¶ Bases:
straditize.widgets.tutorial.beginner.TutorialPage
- Parameters
Attributes
str(object=’’) -> str
str(object=’’) -> str
str(object=’’) -> str
-
src_base
= 'hoya-del-castillo.png'¶
-
src_dir
= '/home/docs/checkouts/readthedocs.org/user_builds/straditize/checkouts/stable/straditize/widgets/tutorial/hoya-del-castillo'¶
-
src_file
= '/home/docs/checkouts/readthedocs.org/user_builds/straditize/checkouts/stable/straditize/widgets/tutorial/hoya-del-castillo/hoya-del-castillo.png'¶