spine_io.importers.gdx_connector
¶
Contains GDXConnector class and a help function.
author: |
|
---|---|
date: | 1.6.2019 |
Module Contents¶
-
spine_io.importers.gdx_connector.
select_gdx_file
(parent=None)[source]¶ Launches QFileDialog with .gdx filter
-
class
spine_io.importers.gdx_connector.
GdxConnector
[source]¶ Bases:
spine_io.io_api.SourceConnection
Template class to read data from another QThread
-
get_tables
(self)[source]¶ Method that should return a list of table names, list(str)
Raises: NotImplementedError
– [description]
-
get_data_iterator
(self, table, options, max_rows=-1)[source]¶ Creates a iterator for the file in self.filename
Parameters: - {string} -- ignored, used in abstract IOWorker class (table) –
- {dict} -- dict with options (options) –
Keyword Arguments: {int} -- how many rows of data to read, if -1 read all rows (default (max_rows) – {-1})
Returns: [type] – [description]
-