tsadmetrics 0.1.4__py3-none-any.whl → 0.1.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- entorno/bin/activate_this.py +32 -0
- entorno/bin/rst2html.py +23 -0
- entorno/bin/rst2html4.py +26 -0
- entorno/bin/rst2html5.py +33 -0
- entorno/bin/rst2latex.py +26 -0
- entorno/bin/rst2man.py +27 -0
- entorno/bin/rst2odt.py +28 -0
- entorno/bin/rst2odt_prepstyles.py +20 -0
- entorno/bin/rst2pseudoxml.py +23 -0
- entorno/bin/rst2s5.py +24 -0
- entorno/bin/rst2xetex.py +27 -0
- entorno/bin/rst2xml.py +23 -0
- entorno/bin/rstpep2html.py +25 -0
- tests/__init__.py +0 -0
- tests/test_binary.py +759 -0
- tests/test_non_binary.py +371 -0
- tsadmetrics/_tsadeval/affiliation/__init__.py +0 -0
- tsadmetrics/_tsadeval/affiliation/_affiliation_zone.py +86 -0
- tsadmetrics/_tsadeval/affiliation/_integral_interval.py +464 -0
- tsadmetrics/_tsadeval/affiliation/_single_ground_truth_event.py +68 -0
- tsadmetrics/_tsadeval/affiliation/generics.py +135 -0
- tsadmetrics/_tsadeval/affiliation/metrics.py +114 -0
- tsadmetrics/_tsadeval/eTaPR_pkg/DataManage/File_IO.py +175 -0
- tsadmetrics/_tsadeval/eTaPR_pkg/DataManage/Range.py +50 -0
- tsadmetrics/_tsadeval/eTaPR_pkg/DataManage/Time_Plot.py +184 -0
- tsadmetrics/_tsadeval/eTaPR_pkg/DataManage/__init__.py +0 -0
- tsadmetrics/_tsadeval/eTaPR_pkg/__init__.py +0 -0
- tsadmetrics/_tsadeval/eTaPR_pkg/etapr.py +386 -0
- tsadmetrics/_tsadeval/eTaPR_pkg/tapr.py +362 -0
- tsadmetrics/_tsadeval/prts/__init__.py +0 -0
- tsadmetrics/_tsadeval/prts/base/__init__.py +0 -0
- tsadmetrics/_tsadeval/prts/base/time_series_metrics.py +165 -0
- tsadmetrics/_tsadeval/prts/basic_metrics_ts.py +121 -0
- tsadmetrics/_tsadeval/prts/time_series_metrics/__init__.py +0 -0
- tsadmetrics/_tsadeval/prts/time_series_metrics/fscore.py +61 -0
- tsadmetrics/_tsadeval/prts/time_series_metrics/precision.py +86 -0
- tsadmetrics/_tsadeval/prts/time_series_metrics/precision_recall.py +21 -0
- tsadmetrics/_tsadeval/prts/time_series_metrics/recall.py +85 -0
- tsadmetrics/utils.py +10 -4
- {tsadmetrics-0.1.4.dist-info → tsadmetrics-0.1.6.dist-info}/METADATA +1 -1
- tsadmetrics-0.1.6.dist-info/RECORD +58 -0
- tsadmetrics-0.1.6.dist-info/top_level.txt +3 -0
- tsadmetrics-0.1.4.dist-info/RECORD +0 -20
- tsadmetrics-0.1.4.dist-info/top_level.txt +0 -1
- {tsadmetrics-0.1.4.dist-info → tsadmetrics-0.1.6.dist-info}/WHEEL +0 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
"""Activate virtualenv for current interpreter:
|
3
|
+
|
4
|
+
Use exec(open(this_file).read(), {'__file__': this_file}).
|
5
|
+
|
6
|
+
This can be used when you must use an existing Python interpreter, not the virtualenv bin/python.
|
7
|
+
"""
|
8
|
+
import os
|
9
|
+
import site
|
10
|
+
import sys
|
11
|
+
|
12
|
+
try:
|
13
|
+
abs_file = os.path.abspath(__file__)
|
14
|
+
except NameError:
|
15
|
+
raise AssertionError("You must use exec(open(this_file).read(), {'__file__': this_file}))")
|
16
|
+
|
17
|
+
bin_dir = os.path.dirname(abs_file)
|
18
|
+
base = bin_dir[: -len("bin") - 1] # strip away the bin part from the __file__, plus the path separator
|
19
|
+
|
20
|
+
# prepend bin to PATH (this file is inside the bin directory)
|
21
|
+
os.environ["PATH"] = os.pathsep.join([bin_dir] + os.environ.get("PATH", "").split(os.pathsep))
|
22
|
+
os.environ["VIRTUAL_ENV"] = base # virtual env is right above bin directory
|
23
|
+
|
24
|
+
# add the virtual environments libraries to the host python import mechanism
|
25
|
+
prev_length = len(sys.path)
|
26
|
+
for lib in "../lib/python3.8/site-packages".split(os.pathsep):
|
27
|
+
path = os.path.realpath(os.path.join(bin_dir, lib))
|
28
|
+
site.addsitedir(path.decode("utf-8") if "" else path)
|
29
|
+
sys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length]
|
30
|
+
|
31
|
+
sys.real_prefix = sys.prefix
|
32
|
+
sys.prefix = base
|
entorno/bin/rst2html.py
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/home/linux/Documentos/TFG/TSADmetrics/entorno/bin/python
|
2
|
+
|
3
|
+
# $Id: rst2html.py 9115 2022-07-28 17:06:24Z milde $
|
4
|
+
# Author: David Goodger <goodger@python.org>
|
5
|
+
# Copyright: This module has been placed in the public domain.
|
6
|
+
|
7
|
+
"""
|
8
|
+
A minimal front end to the Docutils Publisher, producing HTML.
|
9
|
+
"""
|
10
|
+
|
11
|
+
try:
|
12
|
+
import locale
|
13
|
+
locale.setlocale(locale.LC_ALL, '')
|
14
|
+
except Exception:
|
15
|
+
pass
|
16
|
+
|
17
|
+
from docutils.core import publish_cmdline, default_description
|
18
|
+
|
19
|
+
|
20
|
+
description = ('Generates (X)HTML documents from standalone reStructuredText '
|
21
|
+
'sources. ' + default_description)
|
22
|
+
|
23
|
+
publish_cmdline(writer_name='html', description=description)
|
entorno/bin/rst2html4.py
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/home/linux/Documentos/TFG/TSADmetrics/entorno/bin/python
|
2
|
+
|
3
|
+
# $Id: rst2html4.py 9115 2022-07-28 17:06:24Z milde $
|
4
|
+
# Author: David Goodger <goodger@python.org>
|
5
|
+
# Copyright: This module has been placed in the public domain.
|
6
|
+
|
7
|
+
"""
|
8
|
+
A minimal front end to the Docutils Publisher, producing (X)HTML.
|
9
|
+
|
10
|
+
The output conforms to XHTML 1.0 transitional
|
11
|
+
and almost to HTML 4.01 transitional (except for closing empty tags).
|
12
|
+
"""
|
13
|
+
|
14
|
+
try:
|
15
|
+
import locale
|
16
|
+
locale.setlocale(locale.LC_ALL, '')
|
17
|
+
except Exception:
|
18
|
+
pass
|
19
|
+
|
20
|
+
from docutils.core import publish_cmdline, default_description
|
21
|
+
|
22
|
+
|
23
|
+
description = ('Generates (X)HTML documents from standalone reStructuredText '
|
24
|
+
'sources. ' + default_description)
|
25
|
+
|
26
|
+
publish_cmdline(writer_name='html4', description=description)
|
entorno/bin/rst2html5.py
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
#!/home/linux/Documentos/TFG/TSADmetrics/entorno/bin/python
|
2
|
+
# :Copyright: © 2015 Günter Milde.
|
3
|
+
# :License: Released under the terms of the `2-Clause BSD license`_, in short:
|
4
|
+
#
|
5
|
+
# Copying and distribution of this file, with or without modification,
|
6
|
+
# are permitted in any medium without royalty provided the copyright
|
7
|
+
# notice and this notice are preserved.
|
8
|
+
# This file is offered as-is, without any warranty.
|
9
|
+
#
|
10
|
+
# .. _2-Clause BSD license: https://opensource.org/licenses/BSD-2-Clause
|
11
|
+
#
|
12
|
+
# Revision: $Revision: 9021 $
|
13
|
+
# Date: $Date: 2022-03-04 16:54:22 +0100 (Fr, 04. Mär 2022) $
|
14
|
+
|
15
|
+
"""
|
16
|
+
A minimal front end to the Docutils Publisher, producing HTML 5 documents.
|
17
|
+
|
18
|
+
The output is also valid XML.
|
19
|
+
"""
|
20
|
+
|
21
|
+
try:
|
22
|
+
import locale # module missing in Jython
|
23
|
+
locale.setlocale(locale.LC_ALL, '')
|
24
|
+
except locale.Error:
|
25
|
+
pass
|
26
|
+
|
27
|
+
from docutils.core import publish_cmdline, default_description
|
28
|
+
|
29
|
+
description = ('Generates HTML5 documents from standalone '
|
30
|
+
'reStructuredText sources.\n'
|
31
|
+
+ default_description)
|
32
|
+
|
33
|
+
publish_cmdline(writer_name='html5', description=description)
|
entorno/bin/rst2latex.py
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/home/linux/Documentos/TFG/TSADmetrics/entorno/bin/python
|
2
|
+
|
3
|
+
# $Id: rst2latex.py 9115 2022-07-28 17:06:24Z milde $
|
4
|
+
# Author: David Goodger <goodger@python.org>
|
5
|
+
# Copyright: This module has been placed in the public domain.
|
6
|
+
|
7
|
+
"""
|
8
|
+
A minimal front end to the Docutils Publisher, producing LaTeX.
|
9
|
+
"""
|
10
|
+
|
11
|
+
try:
|
12
|
+
import locale
|
13
|
+
locale.setlocale(locale.LC_ALL, '')
|
14
|
+
except Exception:
|
15
|
+
pass
|
16
|
+
|
17
|
+
from docutils.core import publish_cmdline
|
18
|
+
|
19
|
+
description = ('Generates LaTeX documents from standalone reStructuredText '
|
20
|
+
'sources. '
|
21
|
+
'Reads from <source> (default is stdin) and writes to '
|
22
|
+
'<destination> (default is stdout). See '
|
23
|
+
'<https://docutils.sourceforge.io/docs/user/latex.html> for '
|
24
|
+
'the full reference.')
|
25
|
+
|
26
|
+
publish_cmdline(writer_name='latex', description=description)
|
entorno/bin/rst2man.py
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/home/linux/Documentos/TFG/TSADmetrics/entorno/bin/python
|
2
|
+
|
3
|
+
# Author:
|
4
|
+
# Contact: grubert@users.sf.net
|
5
|
+
# Copyright: This module has been placed in the public domain.
|
6
|
+
|
7
|
+
"""
|
8
|
+
man.py
|
9
|
+
======
|
10
|
+
|
11
|
+
This module provides a simple command line interface that uses the
|
12
|
+
man page writer to output from ReStructuredText source.
|
13
|
+
"""
|
14
|
+
|
15
|
+
import locale
|
16
|
+
try:
|
17
|
+
locale.setlocale(locale.LC_ALL, '')
|
18
|
+
except Exception:
|
19
|
+
pass
|
20
|
+
|
21
|
+
from docutils.core import publish_cmdline, default_description
|
22
|
+
from docutils.writers import manpage
|
23
|
+
|
24
|
+
description = ("Generates plain unix manual documents. "
|
25
|
+
+ default_description)
|
26
|
+
|
27
|
+
publish_cmdline(writer=manpage.Writer(), description=description)
|
entorno/bin/rst2odt.py
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/home/linux/Documentos/TFG/TSADmetrics/entorno/bin/python
|
2
|
+
|
3
|
+
# $Id: rst2odt.py 9115 2022-07-28 17:06:24Z milde $
|
4
|
+
# Author: Dave Kuhlman <dkuhlman@rexx.com>
|
5
|
+
# Copyright: This module has been placed in the public domain.
|
6
|
+
|
7
|
+
"""
|
8
|
+
A front end to the Docutils Publisher, producing OpenOffice documents.
|
9
|
+
"""
|
10
|
+
|
11
|
+
try:
|
12
|
+
import locale
|
13
|
+
locale.setlocale(locale.LC_ALL, '')
|
14
|
+
except Exception:
|
15
|
+
pass
|
16
|
+
|
17
|
+
from docutils.core import publish_cmdline_to_binary, default_description
|
18
|
+
from docutils.writers.odf_odt import Writer, Reader
|
19
|
+
|
20
|
+
|
21
|
+
description = ('Generates OpenDocument/OpenOffice/ODF documents from '
|
22
|
+
'standalone reStructuredText sources. ' + default_description)
|
23
|
+
|
24
|
+
|
25
|
+
writer = Writer()
|
26
|
+
reader = Reader()
|
27
|
+
output = publish_cmdline_to_binary(reader=reader, writer=writer,
|
28
|
+
description=description)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/home/linux/Documentos/TFG/TSADmetrics/entorno/bin/python
|
2
|
+
|
3
|
+
# Copyright: This module has been placed in the public domain.
|
4
|
+
|
5
|
+
"""
|
6
|
+
Adapt a word-processor-generated styles.odt for odtwriter use:
|
7
|
+
|
8
|
+
Drop page size specifications from styles.xml in STYLE_FILE.odt.
|
9
|
+
See https://docutils.sourceforge.io/docs/user/odt.html#page-size
|
10
|
+
|
11
|
+
Provisional backwards compatibility stub (to be removed in Docutils >= 0.21).
|
12
|
+
|
13
|
+
The actual code moved to the "docutils" library package and can be started
|
14
|
+
with ``python -m docutils.writers.odf_odt.prepstyles``.
|
15
|
+
"""
|
16
|
+
|
17
|
+
from docutils.writers.odf_odt import prepstyles
|
18
|
+
|
19
|
+
if __name__ == '__main__':
|
20
|
+
prepstyles.main()
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/home/linux/Documentos/TFG/TSADmetrics/entorno/bin/python
|
2
|
+
|
3
|
+
# $Id: rst2pseudoxml.py 9115 2022-07-28 17:06:24Z milde $
|
4
|
+
# Author: David Goodger <goodger@python.org>
|
5
|
+
# Copyright: This module has been placed in the public domain.
|
6
|
+
|
7
|
+
"""
|
8
|
+
A minimal front end to the Docutils Publisher, producing pseudo-XML.
|
9
|
+
"""
|
10
|
+
|
11
|
+
try:
|
12
|
+
import locale
|
13
|
+
locale.setlocale(locale.LC_ALL, '')
|
14
|
+
except Exception:
|
15
|
+
pass
|
16
|
+
|
17
|
+
from docutils.core import publish_cmdline, default_description
|
18
|
+
|
19
|
+
|
20
|
+
description = ('Generates pseudo-XML from standalone reStructuredText '
|
21
|
+
'sources (for testing purposes). ' + default_description)
|
22
|
+
|
23
|
+
publish_cmdline(description=description)
|
entorno/bin/rst2s5.py
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/home/linux/Documentos/TFG/TSADmetrics/entorno/bin/python
|
2
|
+
|
3
|
+
# $Id: rst2s5.py 9115 2022-07-28 17:06:24Z milde $
|
4
|
+
# Author: Chris Liechti <cliechti@gmx.net>
|
5
|
+
# Copyright: This module has been placed in the public domain.
|
6
|
+
|
7
|
+
"""
|
8
|
+
A minimal front end to the Docutils Publisher, producing HTML slides using
|
9
|
+
the S5 template system.
|
10
|
+
"""
|
11
|
+
|
12
|
+
try:
|
13
|
+
import locale
|
14
|
+
locale.setlocale(locale.LC_ALL, '')
|
15
|
+
except Exception:
|
16
|
+
pass
|
17
|
+
|
18
|
+
from docutils.core import publish_cmdline, default_description
|
19
|
+
|
20
|
+
|
21
|
+
description = ('Generates S5 (X)HTML slideshow documents from standalone '
|
22
|
+
'reStructuredText sources. ' + default_description)
|
23
|
+
|
24
|
+
publish_cmdline(writer_name='s5', description=description)
|
entorno/bin/rst2xetex.py
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/home/linux/Documentos/TFG/TSADmetrics/entorno/bin/python
|
2
|
+
|
3
|
+
# $Id: rst2xetex.py 9115 2022-07-28 17:06:24Z milde $
|
4
|
+
# Author: Guenter Milde
|
5
|
+
# Copyright: This module has been placed in the public domain.
|
6
|
+
|
7
|
+
"""
|
8
|
+
A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code.
|
9
|
+
"""
|
10
|
+
|
11
|
+
try:
|
12
|
+
import locale
|
13
|
+
locale.setlocale(locale.LC_ALL, '')
|
14
|
+
except Exception:
|
15
|
+
pass
|
16
|
+
|
17
|
+
from docutils.core import publish_cmdline
|
18
|
+
|
19
|
+
description = ('Generates LaTeX documents from standalone reStructuredText '
|
20
|
+
'sources for compilation with the Unicode-aware TeX variants '
|
21
|
+
'XeLaTeX or LuaLaTeX. '
|
22
|
+
'Reads from <source> (default is stdin) and writes to '
|
23
|
+
'<destination> (default is stdout). See '
|
24
|
+
'<https://docutils.sourceforge.io/docs/user/latex.html> for '
|
25
|
+
'the full reference.')
|
26
|
+
|
27
|
+
publish_cmdline(writer_name='xetex', description=description)
|
entorno/bin/rst2xml.py
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/home/linux/Documentos/TFG/TSADmetrics/entorno/bin/python
|
2
|
+
|
3
|
+
# $Id: rst2xml.py 9115 2022-07-28 17:06:24Z milde $
|
4
|
+
# Author: David Goodger <goodger@python.org>
|
5
|
+
# Copyright: This module has been placed in the public domain.
|
6
|
+
|
7
|
+
"""
|
8
|
+
A minimal front end to the Docutils Publisher, producing Docutils XML.
|
9
|
+
"""
|
10
|
+
|
11
|
+
try:
|
12
|
+
import locale
|
13
|
+
locale.setlocale(locale.LC_ALL, '')
|
14
|
+
except Exception:
|
15
|
+
pass
|
16
|
+
|
17
|
+
from docutils.core import publish_cmdline, default_description
|
18
|
+
|
19
|
+
|
20
|
+
description = ('Generates Docutils-native XML from standalone '
|
21
|
+
'reStructuredText sources. ' + default_description)
|
22
|
+
|
23
|
+
publish_cmdline(writer_name='xml', description=description)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/home/linux/Documentos/TFG/TSADmetrics/entorno/bin/python
|
2
|
+
|
3
|
+
# $Id: rstpep2html.py 9115 2022-07-28 17:06:24Z milde $
|
4
|
+
# Author: David Goodger <goodger@python.org>
|
5
|
+
# Copyright: This module has been placed in the public domain.
|
6
|
+
|
7
|
+
"""
|
8
|
+
A minimal front end to the Docutils Publisher, producing HTML from PEP
|
9
|
+
(Python Enhancement Proposal) documents.
|
10
|
+
"""
|
11
|
+
|
12
|
+
try:
|
13
|
+
import locale
|
14
|
+
locale.setlocale(locale.LC_ALL, '')
|
15
|
+
except Exception:
|
16
|
+
pass
|
17
|
+
|
18
|
+
from docutils.core import publish_cmdline, default_description
|
19
|
+
|
20
|
+
|
21
|
+
description = ('Generates (X)HTML from reStructuredText-format PEP files. '
|
22
|
+
+ default_description)
|
23
|
+
|
24
|
+
publish_cmdline(reader_name='pep', writer_name='pep_html',
|
25
|
+
description=description)
|
tests/__init__.py
ADDED
File without changes
|