Question: This function is called after all the input data have been specified, see the last line in the sample code The function has 5 inputs.
This function is called after all the input data have been specified, see the last line in the sample code
The function has inputs. The names for the inputs have been chosen to match their roles in the description earlier.
The function should return one output which can be a list of lists, an empty list or a string depending on the situation
The expected steps within the function rundiagnostic are:
The function should first check whether all algorithmic parameters are valid. If any of the algorithmic parameter is invalid, the function should return the string 'Corrupted input'. It should not proceed to execute the next two steps.
If all algorithmic parameters are valid, the function should determine whether there are enough data in flowrate for the calculations. If there are not enough data in flowrate, the function should return the string 'Not enough data'. It should not proceed to execute the next step.
If all algorithmic parameters are valid and there are enough data, then the function should proceed to determine the episodes. The function should return either an empty list or a list of lists.
You can use the following test files: testrundiagnosticpy testrundiagnosticpy and testrundiagnosticpy
For both testrundiagnosticpy and testrundiagnosticpy there are enough data and all algorithmic parameters are valid. Your code should proceed to compute the episodes.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
