BaseRunner#
- class lumopt2.utils.runner.BaseRunner(resource: str = 'CPU')#
Base class for job managers.
- Parameters:
- resource
str,optional Resource type for computation: “CPU” or “GPU” (default: “CPU”).
- resource
Methods
BaseRunner.add_job(task[, inputs, label, ...])Add a job to the runner.
Check for circular dependencies in the job graph.
Remove the generated .fsp and .log files, the folder, and clears the jobs
Clear all jobs
BaseRunner.get_job(label)Get a job by its label.
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.
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.