Example #1
0
                    type=parsing.simulation_ids,
                    help="unretrieve the simulations with these ID's")
parser.add_argument(
    "--keep",
    action="store_true",
    help=
    "add this option to make sure the output is kept remotely after a subsequent retrieve attempt"
)

# Parse the command line arguments
arguments = parser.parse_args()

# -----------------------------------------------------------------

# Create the remote execution environment
remote = Remote()
remote.setup(arguments.remote)

for path in fs.files_in_path(fs.cwd(), extension="sim"):

    # Create simulation
    sim = RemoteSimulation.from_file(path)

    if not sim.retrieved: continue

    local_output_path = sim.output_path

    remote_simulation_path = sim.remote_simulation_path
    remote_output_path = sim.remote_output_path
    remote_input_path = sim.remote_input_path