src/java/m/cfa/trends/V1_0.java
@@ -19,7 +19,7 @@ |
@Description("CSIP end point for trend assessment of time series data") |
@VersionInfo("1.0") |
@Path("m/cfa/trends/1.0") |
-@Resource(file = "/python/trends_filename.py", type = FILE, id = "trends_filename") |
+@Resource(file = "/python/trends_WQseries.py", type = FILE, id = "trends_WQseries") |
public class V1_0 extends ModelDataService { |
|
File resultFile = null; |
@@ -30,19 +30,19 @@ |
|
//Get Inputs |
PayloadParameter inputPayload = parameter(); |
- String ts_data = inputPayload.getString("ts_data", ""); |
- String variable2 = inputPayload.getString("variable_2", ""); |
+ //String ts_data = inputPayload.getString("ts_data", ""); |
+ //String variable2 = inputPayload.getString("variable_2", ""); |
|
//Setup directory/result file |
- File pythonModel = resources().getFile("trends_filename"); |
+ File pythonModel = resources().getFile("trends_WQseries"); |
resultFile = new File(directory, "trendsResult.csv"); |
|
//Setup inputs to python |
List<String> args = new ArrayList<>(); |
args.add("python"); |
args.add(pythonModel.getAbsolutePath()); |
- args.add(ts_data); |
- args.add(variable2); |
+ args.add(directory); // this dirctory is same to the dirctory in the python file |
+ // args.add(variable2); |
args.add(resultFile.getAbsolutePath()); |
|
//Call service |