pyiron.base.database.filetable module

class pyiron.base.database.filetable.FileTable(*args, **kwargs)[source]

Bases: object

add_item_dict(par_dict)[source]
delete_item(item_id)[source]
force_reset()[source]
get_child_ids(job_specifier, project=None, status=None)[source]

Get the childs for a specific job

Parameters
  • database (DatabaseAccess) – Database object

  • sql_query (str) – SQL query to enter a more specific request

  • user (str) – username of the user whoes user space should be searched

  • project_path (str) – root_path - this is in contrast to the project_path in GenericPath

  • job_specifier (str) – name of the master job or the master jobs job ID

  • status (str) – filter childs which match a specific status - None by default

Returns

list of child IDs

Return type

list

get_db_columns()[source]
static get_extract(path, mtime)[source]
get_item_by_id(item_id)[source]
get_items_dict(item_dict, return_all_columns=True)[source]
get_job_id(job_specifier, project=None)[source]
get_job_ids(project=None, recursive=True)[source]
get_job_status(job_specifier, project=None)[source]

Get the status of a particular job

Parameters
  • database (DatabaseAccess) – Database object

  • sql_query (str) – SQL query to enter a more specific request

  • user (str) – username of the user whoes user space should be searched

  • project_path (str) – root_path - this is in contrast to the project_path in GenericPath

  • job_specifier (str) – name of the job or job ID

Returns

job status can be one of the following [‘initialized’, ‘appended’, ‘created’, ‘submitted’, ‘running’,

’aborted’, ‘collect’, ‘suspended’, ‘refresh’, ‘busy’, ‘finished’]

Return type

str

get_job_working_directory(job_specifier, project=None)[source]

Get the working directory of a particular job

Parameters
  • database (DatabaseAccess) – Database object

  • sql_query (str) – SQL query to enter a more specific request

  • user (str) – username of the user whoes user space should be searched

  • project_path (str) – root_path - this is in contrast to the project_path in GenericPath

  • job_specifier (str) – name of the job or job ID

Returns

working directory as absolute path

Return type

str

get_jobs(project=None, recursive=True, columns=None)[source]
get_table_headings()[source]
init_table(fileindex, working_dir_lst=None)[source]
item_update(par_dict, item_id)[source]
job_table(project=None, recursive=True, columns=None, all_columns=False, sort_by='id', max_colwidth=200, job_name_contains='')[source]
set_job_status(job_specifier, status, project=None)[source]

Set the status of a particular job

Parameters
  • database (DatabaseAccess) – Database object

  • sql_query (str) – SQL query to enter a more specific request

  • user (str) – username of the user whoes user space should be searched

  • project_path (str) – root_path - this is in contrast to the project_path in GenericPath

  • job_specifier (str) – name of the job or job ID

  • status (str) – job status can be one of the following [‘initialized’, ‘appended’, ‘created’, ‘submitted’, ‘running’, ‘aborted’, ‘collect’, ‘suspended’, ‘refresh’, ‘busy’, ‘finished’]

update()[source]
class pyiron.base.database.filetable.Singleton[source]

Bases: type

Implemented with suggestions from

http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python

pyiron.base.database.filetable.filter_function(file_name)[source]
pyiron.base.database.filetable.get_hamilton_from_file(hdf5_file, job_name)[source]
pyiron.base.database.filetable.get_hamilton_version_from_file(hdf5_file, job_name)[source]
pyiron.base.database.filetable.get_job_status_from_file(hdf5_file, job_name)[source]