def write_batch_file(self, simulation_directory='.', snapshot_directory='output', file_name='globus_batch.txt'):
    '\n        Write batch file that sets files to transfer via globus.\n\n        Parameters\n        ----------\n        simulation_directory : str : directory of simulation\n        snapshot_directory : str : directory of snapshot files within simulation_directory\n        file_name : str : name of batch file to write\n        '
    simulation_directory = ut.io.get_path(simulation_directory)
    snapshot_directory = ut.io.get_path(snapshot_directory)
    transfer_string = ''
    transfer_items = ['gizmo/', 'gizmo_config.sh', 'gizmo_parameters.txt', 'gizmo_parameters.txt-usedvalues', 'gizmo.out.txt', 'snapshot_times.txt', 'notes.txt', 'track/', 'halo/rockstar_dm/catalog_hdf5/']
    for transfer_item in transfer_items:
        if os.path.exists((simulation_directory + transfer_item)):
            command = '{} {}'
            if (transfer_item[(- 1)] == '/'):
                transfer_item = transfer_item[:(- 1)]
                command += ' --recursive'
            command = (command.format(transfer_item, transfer_item) + '\n')
            transfer_string += command
    transfer_items = glob.glob((simulation_directory + 'initial_condition*/*'))
    for transfer_item in transfer_items:
        if ('.ics' not in transfer_item):
            transfer_item = transfer_item.replace(simulation_directory, '')
            command = '{} {}\n'.format(transfer_item, transfer_item)
            transfer_string += command
    for snapshot_index in snapshot_indices_keep:
        snapshot_name = '{}snapdir_{:03d}'.format(snapshot_directory, snapshot_index)
        if os.path.exists((simulation_directory + snapshot_name)):
            snapshot_string = '{} {} --recursive\n'.format(snapshot_name, snapshot_name)
            transfer_string += snapshot_string
        snapshot_name = '{}snapshot_{:03d}.hdf5'.format(snapshot_directory, snapshot_index)
        if os.path.exists((simulation_directory + snapshot_name)):
            snapshot_string = '{} {}\n'.format(snapshot_name, snapshot_name)
            transfer_string += snapshot_string
    with open(file_name, 'w') as file_out:
        file_out.write(transfer_string)
Write batch file that sets files to transfer via globus.

Parameters
----------
simulation_directory : str : directory of simulation
snapshot_directory : str : directory of snapshot files within simulation_directory
file_name : str : name of batch file to write
def write_batch_file(self, simulation_directory='.', snapshot_directory='output', file_name='globus_batch.txt'):
    '\n        Write batch file that sets files to transfer via globus.\n\n        Parameters\n        ----------\n        simulation_directory : str : directory of simulation\n        snapshot_directory : str : directory of snapshot files within simulation_directory\n        file_name : str : name of batch file to write\n        '
    simulation_directory = ut.io.get_path(simulation_directory)
    snapshot_directory = ut.io.get_path(snapshot_directory)
    transfer_string = 
    transfer_items = ['gizmo/', 'gizmo_config.sh', 'gizmo_parameters.txt', 'gizmo_parameters.txt-usedvalues', 'gizmo.out.txt', 'snapshot_times.txt', 'notes.txt', 'track/', 'halo/rockstar_dm/catalog_hdf5/']
    for transfer_item in transfer_items:
        if os.path.exists((simulation_directory + transfer_item)):
            command = '{} {}'
            if (transfer_item[(- 1)] == '/'):
                transfer_item = transfer_item[:(- 1)]
                command += ' --recursive'
            command = (command.format(transfer_item, transfer_item) + '\n')
            transfer_string += command
    transfer_items = glob.glob((simulation_directory + 'initial_condition*/*'))
    for transfer_item in transfer_items:
        if ('.ics' not in transfer_item):
            transfer_item = transfer_item.replace(simulation_directory, )
            command = '{} {}\n'.format(transfer_item, transfer_item)
            transfer_string += command
    for snapshot_index in snapshot_indices_keep:
        snapshot_name = '{}snapdir_{:03d}'.format(snapshot_directory, snapshot_index)
        if os.path.exists((simulation_directory + snapshot_name)):
            snapshot_string = '{} {} --recursive\n'.format(snapshot_name, snapshot_name)
            transfer_string += snapshot_string
        snapshot_name = '{}snapshot_{:03d}.hdf5'.format(snapshot_directory, snapshot_index)
        if os.path.exists((simulation_directory + snapshot_name)):
            snapshot_string = '{} {}\n'.format(snapshot_name, snapshot_name)
            transfer_string += snapshot_string
    with open(file_name, 'w') as file_out:
        file_out.write(transfer_string)