TimeFeatures 1.0.8__tar.gz → 1.0.10__tar.gz
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.
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/PKG-INFO +1 -1
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/TimeFeatures.egg-info/PKG-INFO +1 -1
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/setup.py +1 -1
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/timefeatures/widgets/owsavetodb.py +9 -2
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/LICENSE +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/README.md +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/TimeFeatures.egg-info/SOURCES.txt +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/TimeFeatures.egg-info/dependency_links.txt +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/TimeFeatures.egg-info/entry_points.txt +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/TimeFeatures.egg-info/top_level.txt +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/setup.cfg +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/timefeatures/widgets/__init__.py +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/timefeatures/widgets/icons/graphgenerator.svg +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/timefeatures/widgets/icons/savedatadb.svg +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/timefeatures/widgets/icons/timefeature-xs.svg +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/timefeatures/widgets/icons/timefeature.svg +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/timefeatures/widgets/owtfgraphgenerator.py +0 -0
- {TimeFeatures-1.0.8 → TimeFeatures-1.0.10}/timefeatures/widgets/owtimefeatureconstructor.py +0 -0
|
@@ -21,7 +21,7 @@ setup(name="TimeFeatures",
|
|
|
21
21
|
packages=["timefeatures.widgets"],
|
|
22
22
|
package_data={"timefeatures.widgets": ["icons/*.svg", "icons/*.png"]},
|
|
23
23
|
entry_points={"orange.widgets": "Time-Features = timefeatures.widgets"},
|
|
24
|
-
version="1.0.
|
|
24
|
+
version="1.0.10",
|
|
25
25
|
author="Alejandro Rivas García",
|
|
26
26
|
author_email="alejandrorivasgarcia@gmail.com",
|
|
27
27
|
keywords=[
|
|
@@ -14,7 +14,7 @@ from Orange.widgets.utils.itemmodels import PyListModel
|
|
|
14
14
|
from Orange.widgets.utils.owbasesql import OWBaseSql
|
|
15
15
|
from Orange.widgets.utils.sql import check_sql_input
|
|
16
16
|
from Orange.widgets.utils.widgetpreview import WidgetPreview
|
|
17
|
-
from Orange.widgets.widget import Msg
|
|
17
|
+
from Orange.widgets.widget import Msg, OWWidget
|
|
18
18
|
from PyQt5.QtGui import QPixmap, QStandardItem
|
|
19
19
|
from PyQt5.QtWidgets import QGridLayout, QLineEdit, QPushButton, QSizePolicy, QLabel
|
|
20
20
|
from orangewidget.utils.signals import Input
|
|
@@ -42,7 +42,7 @@ class BackendModel(PyListModel):
|
|
|
42
42
|
return super().data(index, role)
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
class owsavetodb(OWBaseSql):
|
|
45
|
+
class owsavetodb(OWBaseSql, OWWidget):
|
|
46
46
|
name = "Save to DB"
|
|
47
47
|
description = "Save a dataset into a DB."
|
|
48
48
|
icon = "icons/savedatadb.svg"
|
|
@@ -139,6 +139,7 @@ class owsavetodb(OWBaseSql):
|
|
|
139
139
|
minimumWidth=120
|
|
140
140
|
)
|
|
141
141
|
self.btn_savedata.clicked.connect(self.saveData)
|
|
142
|
+
self.btn_savedata.setEnabled(False)
|
|
142
143
|
layoutA.addWidget(self.btn_savedata, 3, 2)
|
|
143
144
|
self._add_backend_controls()
|
|
144
145
|
|
|
@@ -179,6 +180,8 @@ class owsavetodb(OWBaseSql):
|
|
|
179
180
|
|
|
180
181
|
def create_table(self, table_name):
|
|
181
182
|
|
|
183
|
+
self.progressBarInit()
|
|
184
|
+
contBar = 0
|
|
182
185
|
contMetasOriginales = 0
|
|
183
186
|
cont = 0
|
|
184
187
|
variables = []
|
|
@@ -226,6 +229,9 @@ class owsavetodb(OWBaseSql):
|
|
|
226
229
|
|
|
227
230
|
for instance in self.data:
|
|
228
231
|
data_row = []
|
|
232
|
+
contBar += 1
|
|
233
|
+
self.progressBarSet((contBar + 1) * 100 / len(self.data))
|
|
234
|
+
|
|
229
235
|
for i in range(len(variables)):
|
|
230
236
|
if cont > 0:
|
|
231
237
|
i -= cont
|
|
@@ -239,6 +245,7 @@ class owsavetodb(OWBaseSql):
|
|
|
239
245
|
pass
|
|
240
246
|
except BackendError as ex:
|
|
241
247
|
self.Error.connection(str(ex))
|
|
248
|
+
self.progressBarFinished()
|
|
242
249
|
|
|
243
250
|
def saveData(self):
|
|
244
251
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|