Skip to content
Snippets Groups Projects
Commit e425ee3c authored by Kien Le's avatar Kien Le
Browse files

Fix type documentation for processing.loadData

Change type of parameters readStart and readEnd from List[float] to int
in order to reflect their usage.
parent 018174f1
No related branches found
No related tags found
1 merge request!31Add type hint to controller code
......@@ -22,7 +22,7 @@ from sohstationviewer.controller.util import validateFile, displayTrackingInfo
def loadData(dataType: str, tracking_box: QTextBrowser, listOfDir: List[str],
reqWFChans: List[str] = [], reqSOHChans: List[str] = [],
readStart: List[float] = None, readEnd: List[float] = None,
readStart: int = None, readEnd: int = None,
) -> DataTypeModel:
"""
Go through root dir and read all files in that dir and its subdirs
......@@ -31,8 +31,8 @@ def loadData(dataType: str, tracking_box: QTextBrowser, listOfDir: List[str],
:param listOfDir: [str,] - list of directories selected by users
:param reqWFChans: [str,] - requested waveform channel list
:param reqSOHChans: [str,] - requested soh channel list
:param readStart: [float,] - start time of read data
:param readEnd: [float,] - finish time of read data
:param readStart: int - start time of read data
:param readEnd: int - finish time of read data
:return dataObject: DataTypeModel - object that keep the data read from
listOfDir
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment