Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BSC-ES/autosubmit
/ functions
Functions
2,688 in github.com/BSC-ES/autosubmit
⨍
Functions
2,688
◇
Types & classes
156
↳
Endpoints
41
↓ 795 callers
Method
get
(self, cmd, working_directory, cache)
docs/source/ext/runcmd.py:54
↓ 547 callers
Method
get_job_by_name
Returns the job that its name matches parameter name. :parameter name: name to look for :type name: str :return: found job
autosubmit/job/job_list.py:2265
↓ 271 callers
Method
split
Current split.
autosubmit/job/job.py:499
↓ 208 callers
Method
debug
Sends debug information to the log. :param msg: message to show :param args: arguments for message formating (it will be done using f
autosubmit/log/log.py:356
↓ 205 callers
Method
info
Sends information to the log. :param msg: message to show :param args: arguments for message formatting (it will be done using format
autosubmit/log/log.py:366
↓ 173 callers
Method
get_job_list
Get inner job list. :return: job list :rtype: list
autosubmit/job/job_list.py:1817
↓ 123 callers
Function
autosubmit_exp
Create an instance of ``Autosubmit`` with an experiment. If an ``expid`` is provided, it will create an experiment with that ID. Otherwise, i
test/integration/conftest.py:126
↓ 113 callers
Method
warning
Sends program warnings to the log. It will be shown in yellow in the console. :param msg: message to show :param args: arguments for
autosubmit/log/log.py:386
↓ 99 callers
Function
autosubmit_config
Return a factory for ``AutosubmitConfig`` objects. Abstracts the necessary mocking in ``AutosubmitConfig`` and related objects, so that if we
test/unit/conftest.py:50
↓ 98 callers
Method
format
Format log output, adding labels if needed for log level. If logging to console, also manages font color. If logging to file adds ti
autosubmit/log/log.py:112
↓ 76 callers
Method
result
Sends results information to the log. It will be shown in green in the console. :param msg: message to show :param args: arguments fo
autosubmit/log/log.py:376
↓ 75 callers
Method
connect
Establishes an SSH connection to the host. :param as_conf: The Autosubmit configuration object. :param reconnect: Indicates whether t
autosubmit/platforms/platform.py:816
↓ 67 callers
Method
printlog
Log management for Autosubmit messages. Attributes: code -- Classified code message -- explanation
autosubmit/log/log.py:436
↓ 55 callers
Method
load
Recreates a stored job list from the persistence. :return: loaded job list object :rtype: JobList
autosubmit/job/job_list.py:2354
↓ 52 callers
Method
get_section
Gets any section. If it does not exist in the dictionary it returns ``None``, or and error if it must exist. :param section: section
autosubmit/config/configcommon.py:172
↓ 49 callers
Method
send_command
(self, command, ignore_log=False, x11=False)
autosubmit/platforms/ecplatform.py:225
↓ 48 callers
Method
values
(self)
autosubmit/monitor/diagram.py:112
↓ 31 callers
Method
get_project_dir
Returns experiment's project destination directory. The returned directory will include the local root directory, expid, project dire
autosubmit/config/configcommon.py:146
↓ 29 callers
Method
get_files_path
The platform's LOG directory. :return: platform's LOG directory :rtype: str
autosubmit/platforms/platform.py:740
↓ 29 callers
Method
read
Reads configuration from .autosubmitrc files, first from /etc., then for user directory and last for current path.
autosubmit/config/basicconfig.py:196
↓ 27 callers
Method
add_parent
Add parents for the job. It also adds current job as a child for all the new parents :param parents: job's parents to add :t
autosubmit/job/job.py:1026
↓ 26 callers
Method
log
(self, main_msg, traceback_msg="")
autosubmit/history/internal_logging.py:30
↓ 26 callers
Method
save
Persists the job list.
autosubmit/job/job_list.py:2392
↓ 26 callers
Method
start
Function to start the profiling process.
autosubmit/profiler/profiler.py:75
↓ 25 callers
Method
group_jobs
(self)
autosubmit/job/job_grouping.py:49
↓ 24 callers
Method
reload
Reloads the configuration files :param force_load: If True, reloads all the files, if False, reloads only the modified files :param on
autosubmit/config/configcommon.py:1815
↓ 24 callers
Function
timedelta2hours
Convert a Python timedelta to a number of hours. It takes into account the number of days too. So if you have a time delta with 3 hours, and
autosubmit/statistics/utils.py:84
↓ 24 callers
Method
update_parameters
Refresh the job's parameters value. This method reloads the Autosubmit configuration and updates the job's parameters based
autosubmit/job/job.py:2263
↓ 23 callers
Method
expid
Returns the experiment identifier :return: experiment's identifier :rtype: str
autosubmit/job/job_list.py:92
↓ 22 callers
Method
close_connection
(self)
autosubmit/platforms/platform.py:787
↓ 22 callers
Method
error
Sends errors to the log. It will be shown in red in the console. :param msg: message to show :param args: arguments for message forma
autosubmit/log/log.py:396
↓ 22 callers
Method
get_platform
Returns main platforms from experiment's config file :return: main platforms :rtype: str
autosubmit/config/configcommon.py:2417
↓ 22 callers
Method
run_experiment
Runs and experiment (submitting all the jobs properly and repeating its execution in case of failure). :param expid: the experiment id
autosubmit/autosubmit.py:2060
↓ 21 callers
Function
_get_platform
(exp: 'AutosubmitExperiment')
test/integration/test_paramiko_platform.py:99
↓ 21 callers
Function
get_experiment
(autosubmit_exp)
test/integration/test_paramiko_platform.py:55
↓ 21 callers
Method
get_project_type
Returns project type from experiment config file. ``"none"`` means a dummy project, where every job is replaced by a call to ``sleep`
autosubmit/config/configcommon.py:2137
↓ 21 callers
Method
set_file
Configure the file to store the log. If another file was specified earlier, new messages will only go to the new file. :param file_p
autosubmit/log/log.py:214
↓ 20 callers
Function
_create_dummy_job_with_status
(job_id: int, status: int)
test/unit/test_job_list.py:143
↓ 20 callers
Method
from_model
Build JobData from JobDataRow.
autosubmit/history/data_classes/job_data.py:81
↓ 20 callers
Method
generate
Creates all jobs needed for the current workflow. :param create: :type create: bool :param force: :type force
autosubmit/job/job_list.py:153
↓ 20 callers
Method
get_experiment_run_dc_with_max_id
Get Current (latest) ExperimentRun data class.
autosubmit/history/database_managers/experiment_history_db_manager.py:195
↓ 20 callers
Method
initialize_database
(self)
autosubmit/history/experiment_history.py:61
↓ 20 callers
Method
install
Creates a new database instance for autosubmit at the configured path.
autosubmit/autosubmit.py:3629
↓ 20 callers
Function
next_job_id
A fixture that returns a sequence of Job IDs. We had a test failing intermittently due to ``randrange`` used to generate job ids: https://git
test/unit/conftest.py:246
↓ 20 callers
Method
read
(self)
test/unit/test_job.py:982
↓ 20 callers
Method
send_file
Sends a local file to the platform. :param filename: The name of the file to send. :param check: Whether the platform must perform te
autosubmit/platforms/platform.py:586
↓ 19 callers
Method
_createDummyJobs
(self, sections_dict, date_list, member_list, chunk_list)
test/unit/test_wrappers.py:2000
↓ 19 callers
Function
get_table_with_schema
Get the ``Table`` instance with the metadata modified. The metadata will use the given container. This means you can have table ``A`` with no
autosubmit/database/tables.py:227
↓ 19 callers
Method
load_job_list
(expid, as_conf, monitor=False, new=True)
autosubmit/autosubmit.py:5477
↓ 19 callers
Method
stop
The stop command allows users to stop the desired experiments. :param expids: expids to stop :type expids: str :param force:
autosubmit/autosubmit.py:5645
↓ 18 callers
Method
count
(self, table_name: str)
autosubmit/database/db_manager.py:87
↓ 18 callers
Function
create_experiment_history_db_manager
(db_engine: str, **options: Any)
autosubmit/history/database_managers/experiment_history_db_manager.py:887
↓ 18 callers
Method
create_tree_list
Create graph from joblist :param hide_groups: :param groups: :param packages: :param expid: experiment's ide
autosubmit/monitor/monitor.py:304
↓ 18 callers
Method
load_parameters
Load all experiment data :return: a dictionary containing tuples [parameter_name, parameter_value] :rtype: dict
autosubmit/config/configcommon.py:2085
↓ 18 callers
Method
run_command
(args: argparse.Namespace)
autosubmit/autosubmit.py:750
↓ 18 callers
Method
set_last_as_command
Set the last autosubmit command used in the experiment's config file :param command: current autosubmit command :return:
autosubmit/config/configcommon.py:2435
↓ 17 callers
Method
_init_runtime_parameters
(self)
autosubmit/job/job.py:360
↓ 17 callers
Method
send_command
Sends a given command to an HPC platform. :param command: The command to send to the HPC. :param ignore_log: Whether logging is enabl
autosubmit/platforms/paramiko_platform.py:1240
↓ 16 callers
Method
get_member_list
Get inner member list. :return: member list :rtype: list
autosubmit/job/job_list.py:1801
↓ 15 callers
Method
check_conf_files
Checks configuration files (autosubmit, experiment jobs and platforms), looking for invalid values, missing required options. Print results in
autosubmit/config/configcommon.py:1220
↓ 15 callers
Method
initialize
(self)
autosubmit/history/database_managers/experiment_history_db_manager.py:60
↓ 15 callers
Method
unify_conf
Unifies all configuration files into a single dictionary. :param current_data: dict with current configuration :param new_data: dict w
autosubmit/config/configcommon.py:809
↓ 14 callers
Method
_parse_filter_to_check
Parse the filter to check and return the value to check. Selection process: value_to_check can be: a range: [0:], [:N
autosubmit/job/job_list.py:534
↓ 14 callers
Function
do_setstatus
(as_exp_, fl=None, fc=None, fct=None, ftcs=None, fs=None, ft=None, target="WAITING")
test/integration/commands/test_set_status.py:24
↓ 14 callers
Method
get_jobs
Return all the jobs matching section, date, member and chunk provided. If any parameter is none, returns all the jobs without checkin
autosubmit/job/job_dict.py:466
↓ 14 callers
Function
main
()
autosubmit/scripts/autosubmit.py:100
↓ 13 callers
Method
_build_vertical_packages
Builds Vertical-Mixed or Vertical :param section_list: Jobs defined as wrappable belonging to a common section.\n :type sect
autosubmit/job/job_packager.py:710
↓ 13 callers
Method
_check_ownership_and_set_last_command
(as_conf, expid, command)
autosubmit/autosubmit.py:1066
↓ 13 callers
Method
check_script
Checks if the script is well-formed. :param as_conf: Autosubmit configuration. :param show_logs: Whether to display logs or not.
autosubmit/job/job.py:2526
↓ 13 callers
Method
format
Format log output, adding labels if needed for log level. If logging to console, also manages font color. If logging to file adds tim
test/regression_to_be_cleaned/tests_log.py:49
↓ 13 callers
Method
get_retrials
Returns max number of retrials for job from autosubmit's config file. :return: safety sleep time :rtype: int
autosubmit/config/configcommon.py:2548
↓ 13 callers
Function
get_table_from_name
Get the table from a given table name. :param schema: The schema name. :param table_name: The table name. :return: The table if found, ``N
autosubmit/database/tables.py:250
↓ 12 callers
Method
_indent
(self, text, amount, ch=' ')
autosubmit/platforms/wrappers/wrapper_builder.py:468
↓ 12 callers
Function
_replace_placeholders
(content: str, tmp_path: 'LocalPath')
test/integration/job/template/test_bash.py:35
↓ 12 callers
Method
substitute_dynamic_variables
Substitute dynamic variables in the experiment data. This function replaces placeholders in the experiment data with their correspon
autosubmit/config/configcommon.py:932
↓ 12 callers
Method
update_status
Updates job status, checking COMPLETED file if needed. :param as_conf: Autosubmit configuration. :param failed_file: boolean, if True
autosubmit/job/job.py:1440
↓ 11 callers
Function
_create_dummy_job
(name, status, date=None, member=None, chunk=None, split=None)
test/unit/test_job_grouping.py:30
↓ 11 callers
Function
_create_dummy_job
(name, status, date=None, member=None, chunk=None, split=None)
test/unit/test_job_graph.py:31
↓ 11 callers
Method
_get_job_list_persistence
Returns the JobListPersistence corresponding to the storage type defined on autosubmit's config file. :return: job_list_persistence :
autosubmit/autosubmit.py:5439
↓ 11 callers
Method
cat_log
The cat-log command allows users to view Autosubmit logs using the command-line. It is possible to use ``autosubmit cat-log`` for Workflow an
autosubmit/autosubmit.py:5511
↓ 11 callers
Function
check_ownership
Check if the user owns and if it is eadmin. :return: the owner, eadmin and current_owner
autosubmit/experiment/experiment_common.py:403
↓ 11 callers
Method
create
Creates job list for given experiment. Configuration files must be valid before executing this process. :param detail: Show Job List view in
autosubmit/autosubmit.py:4288
↓ 11 callers
Function
create_engine
Create SQLAlchemy Core engine. :param connection_url: A SQLAlchemy connection URL.
autosubmit/database/session.py:21
↓ 11 callers
Method
create_table
(self, table_name: str)
autosubmit/database/db_manager.py:40
↓ 11 callers
Method
execute_statement_on_dbfile
Executes a statement on a database file specified by path.
autosubmit/history/database_managers/database_manager.py:60
↓ 11 callers
Function
get_next_expid
Returns a factory to retrieve the next Autosubmit experiment ID. The returned experiment ID by the factory function is guaranteed to be uniqu
test/integration/conftest.py:99
↓ 11 callers
Method
get_ready
Returns a list of ready jobs. :param wrapper: :param hold: :param platform: job platform :type platform: HPCPlatform
autosubmit/job/job_list.py:2129
↓ 11 callers
Method
get_ssh_output
Gets output from last command executed. :return: output from last command :rtype: str
autosubmit/platforms/paramiko_platform.py:1461
↓ 11 callers
Method
insert
(self, table_name: str, data: dict[str, Any])
autosubmit/database/db_manager.py:54
↓ 11 callers
Method
spawn_log_retrieval_process
Spawns a process to recover the logs of the jobs that have been completed on this platform. :param as_conf: Configuration object for the plat
autosubmit/platforms/platform.py:916
↓ 10 callers
Method
_check_relationship
Check if the current_job_value is included in the filter_value :param relationships: current filter level to check. :param le
autosubmit/job/job_list.py:639
↓ 10 callers
Function
_color_status
Return the colour associated with the given ``status``. :param status: Status :type status: Job status :return: The colour :rtype: st
autosubmit/monitor/monitor.py:121
↓ 10 callers
Function
close_conn
Commits changes and close connection to database :param conn: connection to close :type conn: sqlite3.Connection :param cursor: curs
autosubmit/database/db_common.py:119
↓ 10 callers
Function
delete_experiment
Deletes an experiment from the database, the experiment's folder database entry and all the related metadata files. :param expids: List of ex
autosubmit/experiment/experiment_common.py:100
↓ 10 callers
Function
empty_job_list
(tmp_path, as_conf, mocker)
test/unit/test_job_list.py:151
↓ 10 callers
Method
get_built_select_statement
Build and return a SELECT statement with the same fields as the model. Requires that the table is associated with a model (namedtuple).
autosubmit/history/database_managers/database_manager.py:135
↓ 10 callers
Function
get_connection_url
Return a SQLAlchemy connection URL.
autosubmit/database/db_common.py:863
↓ 10 callers
Method
get_experiment_status_row_by_expid
Get Models.ExperimentRow by expid.
autosubmit/history/database_managers/experiment_status_db_manager.py:73
↓ 10 callers
Method
props
(self)
test/unit/test_job.py:974
↓ 10 callers
Method
register_submitted_job_data_dc
Sets previous register to last=0 and inserts the new job_data_dc data class.
autosubmit/history/database_managers/experiment_history_db_manager.py:232
next →
1–100 of 2,688, ranked by callers