Commit dbadc8a2 authored by j_stru18's avatar j_stru18

Merge branch 'feature/449_edit_remote_HDF5TXT_files' into develop

parents f7fdb9ae 6079d0f6
......@@ -88,7 +88,8 @@ returns a list containing the paths to all .h5 or .hdf5 files that are specified
exists
@author j_stru18
@param path : a string that is supposed to be a valid path for a HDF5TXT file
@ensure: if filePath points to a valid file, it has to a textfile
@param filePath : a string that is supposed to be a valid path for a HDF5TXT file
@return a list that contains all .h5 and .hdf5 files in the HDF5TXT
"""
def getHdf5List(filePath):
......@@ -105,6 +106,23 @@ def getHdf5List(filePath):
Log.error("HDF5 textfile contained invalid path {}".format(line), DBUTIL_LOGGER_ID)
return pathList
"""
returns a list containing all lines of the file that filePath points at
@author: j_stru18
@param filePath : a string that is supposed to be a path for a txt file
@return: a list that contains all lines of that file
"""
def getLinesAsList(filePath):
pathList = []
if os.path.exists(filePath):
pathList = [line for line in open(filePath)]
return pathList
"""
Given the name of a file, this method returns its type
......
This diff is collapsed.
......@@ -3,7 +3,6 @@ from PyQt5.QtWidgets import QDialog, QPushButton, QMessageBox, QAction, QGridLay
from gui.prototxt_editor import text_edit
class EditorWidget(QDialog):
'''This Editor enables text-based changes of Prototxt files. Connect to the sinal sgSave to get the savedata'''
......@@ -46,6 +45,7 @@ class EditorWidget(QDialog):
self.addAction(self.quitaction)
self.quitaction.triggered.connect(self._onClose)
sgSave = pyqtSignal(['QString'])
sgClose = pyqtSignal()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment