The copy-inputs-action action copies all data source inputs and their respecive paths to a local plugin data folder.
This action facilitates the transfer of files from a remote store to the local directory being used for model processing. Most commonly it is used to transfer the RAS Model files for local execution.
The action performs the following steps:
- Input Validation: Validates the inputs configuration and required attributes
- Source Data Access: Opens the source data files and retrieves the specified datasets
- Destination Data Access: Creates destination files in the local model directory
- Data Processing:
- Reads data from source files
- Writes data to destination files in the model directory
- Maintains original filenames during copying
inputs(array)- Description: List of input data source configurations
- Required: Yes
- Fields:
name(string): Name of the input data sourcepaths(map): Mapping of source path keys to local file paths
- Notes:
- Each input source can specify multiple file paths to copy
- Source paths are accessed via the "hdf" key in the Paths map
{
"action": "copy-inputs",
"attributes": {
"inputs": [
{
"name": "input_data",
"paths": {
"hdf": "input/model.hdf"
}
}
]
}
}The action returns descriptive error messages for:
- Invalid inputs specification
- Missing or invalid configuration parameters
- File access errors (source/destination)
- Data read/write failures
- Path resolution errors
- Remote files are copied to the local file system directory (actions.MODEL_DIR:
/sim/model)