Skip to content

Commit 94cf23e

Browse files
committed
bug in data search fixed
* version set to 0.1.2 * bug in data search fixed
1 parent 8292f7d commit 94cf23e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pandasqt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
__import__('pkg_resources').declare_namespace(__name__)
3-
__version__ = '0.1.1'
3+
__version__ = '0.1.2'
44

55
#__all__ = ["DataFrameModel", "CustomDelegates", "DtypeComboDelegate"]
66
from DataFrameModel import DataFrameModel

pandasqt/csvwidget.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ class CSVImportDialog(QtGui.QDialog):
180180
Attributes:
181181
load (QtCore.pyqtSignal): This signal is emitted, whenever the
182182
dialog is successfully closed, e.g. when the ok button is
183-
pressed.
183+
pressed. Returns DataFrameModel and path of chosen csv file.
184184
"""
185185

186-
load = QtCore.pyqtSignal('QAbstractItemModel')
186+
load = QtCore.pyqtSignal('QAbstractItemModel', str)
187187

188188
def __init__(self, parent=None):
189189
"""Constructs the object with the given parent.
@@ -412,7 +412,7 @@ def _loadCSVDataFrame(self):
412412
"""Loads the given csv file with pandas and generate a new dataframe.
413413
414414
The file will be loaded with the configured encoding, delimiter
415-
and header.
415+
and header.git
416416
If any execptions will occur, an empty Dataframe is generated
417417
and a message will appear in the status bar.
418418
@@ -464,7 +464,7 @@ def accepted(self):
464464
if model is not None:
465465
df = model.dataFrame().copy()
466466
dfModel = DataFrameModel(df)
467-
self.load.emit(dfModel)
467+
self.load.emit(dfModel, self._filename)
468468
self._resetWidgets()
469469
self.accept()
470470

0 commit comments

Comments
 (0)