kqcircuits.simulations.export.simulation_export

kqcircuits.simulations.export.simulation_export.get_combined_parameters(simulation, solution)[source]

Return parameters of Simulation and Solution in a combined dictionary. In case of common keys, ‘solution.’ prefix is added to Solution parameter key.

kqcircuits.simulations.export.simulation_export.copy_content_into_directory(source_paths: list, path: Path, folder)[source]

Create a folder and copy the contents of the source folders into it

Parameters:
  • source_paths – list of source directories from which to copy content

  • path – path where the new folder will be created

  • folder – name of the new folder

kqcircuits.simulations.export.simulation_export.get_post_process_command_lines(post_process, path, json_filenames)[source]

Return post process command line calls as string. Can be used in construction of .bat or .sh script files.

Parameters:
  • post_process – List of PostProcess objects, a single PostProcess object, or None to be executed after simulations

  • path – simulation folder path

  • json_filenames – list of paths to simulation json files

Returns:

Command lines as string

kqcircuits.simulations.export.simulation_export.export_simulation_json(json_data, json_file_path)[source]

Export simulation definitions json. Raise an error if file exists

kqcircuits.simulations.export.simulation_export.export_simulation_oas(simulations, path: Path, file_prefix='simulation')[source]

Write single OASIS file containing all simulations in list.

kqcircuits.simulations.export.simulation_export.sweep_simulation(layout, sim_class, sim_parameters, sweeps)[source]

Create simulation sweep by varying one parameter at time. Return list of simulations.

kqcircuits.simulations.export.simulation_export.cross_sweep_simulation(layout, sim_class, sim_parameters, sweeps)[source]

Create simulation sweep by cross-varying all parameters. Return list of simulations.

kqcircuits.simulations.export.simulation_export.sweep_solution(sol_class, sol_parameters, sweeps)[source]

Create solution sweep by varying one parameter at time. Return list of solutions.

kqcircuits.simulations.export.simulation_export.cross_sweep_solution(sol_class, sol_parameters, sweeps)[source]

Create solution sweep by cross-varying all parameters. Return list of solutions.

kqcircuits.simulations.export.simulation_export.cross_combine(simulations, solutions)[source]

Combines simulations and solutions into list of tuples.

Parameters:
  • simulations – A Simulation object or a list of Simulation objects.

  • solutions – A Solution object or a list of Solution objects.

Returns:

A list of tuples containing all combinations of simulations and solutions.

../_images/kqcircuits.simulations.export.simulation_export.png