def rsync_simulation_files(machine_name, directory_from='/oldscratch/projects/xsede/GalaxiesOnFIRE', directory_to='.'):
    "\n    Use rsync to copy simulation files.\n\n    Parameters\n    ----------\n    machine_name : str : 'pfe', 'stampede', 'bw', 'peloton'\n    directory_from : str : directory to copy from\n    directory_to : str : directory to put files\n    "
    excludes = ['output/', 'restartfiles/', 'ewald_spc_table_64_dbl.dat', 'spcool_tables/', 'TREECOOL', 'energy.txt', 'balance.txt', 'GasReturn.txt', 'HIIheating.txt', 'MomWinds.txt', 'SNeIIheating.txt', '*.ics', 'snapshot_scale-factors.txt', 'submit_gizmo*.py', '*.bin', '*.particles', '*.bak', '*.err', '*.pyc', '*.o', '*.pro', '*.perl', '.ipynb_checkpoints', '.slurm', '.DS_Store', '*~', '._*', '#*#']
    directory_from = ((machine_name + ':') + ut.io.get_path(directory_from))
    directory_to = ut.io.get_path(directory_to)
    command = 'rsync -ahvP --size-only '
    arguments = ''
    for exclude in excludes:
        arguments += '--exclude="{}" '.format(exclude)
    command += ((((arguments + directory_from) + ' ') + directory_to) + '.')
    print('\n* executing:\n{}\n'.format(command))
    os.system(command)
Use rsync to copy simulation files.

Parameters
----------
machine_name : str : 'pfe', 'stampede', 'bw', 'peloton'
directory_from : str : directory to copy from
directory_to : str : directory to put files
def rsync_simulation_files(machine_name, directory_from='/oldscratch/projects/xsede/GalaxiesOnFIRE', directory_to='.'):
    "\n    Use rsync to copy simulation files.\n\n    Parameters\n    ----------\n    machine_name : str : 'pfe', 'stampede', 'bw', 'peloton'\n    directory_from : str : directory to copy from\n    directory_to : str : directory to put files\n    "
    excludes = ['output/', 'restartfiles/', 'ewald_spc_table_64_dbl.dat', 'spcool_tables/', 'TREECOOL', 'energy.txt', 'balance.txt', 'GasReturn.txt', 'HIIheating.txt', 'MomWinds.txt', 'SNeIIheating.txt', '*.ics', 'snapshot_scale-factors.txt', 'submit_gizmo*.py', '*.bin', '*.particles', '*.bak', '*.err', '*.pyc', '*.o', '*.pro', '*.perl', '.ipynb_checkpoints', '.slurm', '.DS_Store', '*~', '._*', '#*#']
    directory_from = ((machine_name + ':') + ut.io.get_path(directory_from))
    directory_to = ut.io.get_path(directory_to)
    command = 'rsync -ahvP --size-only '
    arguments = 
    for exclude in excludes:
        arguments += '--exclude="{}" '.format(exclude)
    command += ((((arguments + directory_from) + ' ') + directory_to) + '.')
    print('\n* executing:\n{}\n'.format(command))
    os.system(command)