BaseRunner#

class lumopt2.utils.runner.BaseRunner(resource: str = 'CPU')#

Base class for job managers.

Parameters:
resourcestr, optional

Resource type for computation: “CPU” or “GPU” (default: “CPU”).

Methods

BaseRunner.add_job(task[, inputs, label, ...])

Add a job to the runner.

BaseRunner.check_circular_dependencies()

Check for circular dependencies in the job graph.

BaseRunner.clear()

Remove the generated .fsp and .log files, the folder, and clears the jobs

BaseRunner.clear_jobs()

Clear all jobs

BaseRunner.get_job(label)

Get a job by its label.

BaseRunner.get_job_dependencies_ids(job)

Get the job IDs of a job's dependencies.

BaseRunner.get_job_result(label)

Get the result of a job by its label.

BaseRunner.get_task_type(task)

Get the type of task.

BaseRunner.print_job_statuses()

Log the status of all jobs.

BaseRunner.pyfct_to_script(fct, inputs, label)

Convert a Python function to a standalone script file.

BaseRunner.set_done(label)

Set a job as done by its label.

BaseRunner.set_fdtd_session(fdtd_session)

Set the FDTD session.

BaseRunner.set_job_result(label, result)

Set the result of a job by its label.

BaseRunner.set_jobid(label, jobid)

Set the job ID for a job by its label.