pyiron.base.database.filetable module¶
-
class
pyiron.base.database.filetable.
FileTable
(*args, **kwargs)[source]¶ Bases:
object
-
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_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
-
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’]
-
-
class
pyiron.base.database.filetable.
Singleton
[source]¶ Bases:
type
Implemented with suggestions from
http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python