Skip to content

Commit

Permalink
fixed logic for xyce creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Letter committed Aug 9, 2018
1 parent cc5349c commit 6ec346f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions agent/slycat-xyce-timeseries-to-hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def _isNumeric(j):
return True

parser = argparse.ArgumentParser()
parser.add_argument("--input_directory", help="Input directory containing XYCE data (a dakota_tabular.dat file and multiple workdirN/*.prn files).")
parser.add_argument("--output_directory", help="Output directory containing hdf5 files.")
parser.add_argument("--input-directory", help="Input directory containing XYCE data (a dakota_tabular.dat file and multiple workdirN/*.prn files).")
parser.add_argument("--output-directory", help="Output directory containing hdf5 files.")
parser.add_argument("--id-column", default="%eval_id", help="Inputs file id column name. Default: %(default)s")
parser.add_argument("--inputs-file", default=None, help="The name of the delimited text file containing input data. By default, dakota_tabular.dat will be loaded from the input directory.")
parser.add_argument("--inputs-file-delimiter", default=None, help="Field delimiter. By default, fields will be delimited with any whitespace except a newline.")
Expand Down
8 changes: 6 additions & 2 deletions web-server/js/slycat-remote-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,11 @@ define('slycat-remote-interface', ['knockout', 'knockout-mapping', 'slycat-serve
"value": fn_params.xyce_timeseries_file
},
{
"name": "--inputs-directory",
"name": "--inputs-file",
"value": fn_params.inputs_file
},
{
"name": "--input-directory",
"value": fn_params.input_directory
},
{
Expand All @@ -367,7 +371,7 @@ define('slycat-remote-interface', ['knockout', 'knockout-mapping', 'slycat-serve
// if "hdf5_directory" in params and params["hdf5_directory"] != "":
// hdf5_dir = params["hdf5_directory"]

if (fn_params.timeseries_name !== "")
if (fn_params.timeseries_name !== "" && fn_params.timeseries_type === "csv")
{
json_payload.scripts.push({
"name": "compute_timeseries",
Expand Down

0 comments on commit 6ec346f

Please sign in to comment.