Displaying differences for changeset
 
display as  

src/java/m/cfa/trends/V1_0.java

@@ -29,9 +29,8 @@
         String directory = workspace().getDir().toString();
         
         //Get Inputs
-        PayloadParameter inputPayload = parameter();
+        //PayloadParameter inputPayload = parameter();
         //String ts_data = inputPayload.getString("ts_data", "");
-        //String variable2 = inputPayload.getString("variable_2", "");
         
         //Setup directory/result file
         File pythonModel = resources().getFile("trends_WQseries");
@@ -42,7 +41,6 @@
         args.add("python");
         args.add(pythonModel.getAbsolutePath());
         args.add(directory); // this dirctory is same to the dirctory in the python file
-        // args.add(variable2);
         args.add(resultFile.getAbsolutePath());
 
         //Call service

src/java/python/trends_WQseries.py

@@ -12,16 +12,16 @@
 
 
 # test string:
-# python trends_filename.py "date,value\n2021-12-01,4.2\n2021-12-02,5.2" myValue2
+# python trends_WQseries.py "C:/Users/jiadali/Desktop/BLM_Sulfate.csv"
 
 class tylersPythonClass():
 
-    def tylersPythonFunction(self, directory, variable_2):
+    def tylersPythonFunction(self, directory, resultFileName):
        
         # Add your model code here
 
         # read worksheet from local excel dir
-        directory = "C:/Users/jiadali/Desktop/BLM_Sulfate.csv"  # define for THE local folder to store csv; comment out this line when using run this script in csip-service
+        #directory = "C:/Users/jiadali/Desktop/BLM_Sulfate.csv"  # define for THE local folder to store csv; comment out this line when using run this script in csip-service
         xls = directory
 
         ### WQ-sulfate  single-station trend analysis starts here