Skip to content

Improve flexibility of simulation engine input preparation process #364

@danielolsen

Description

@danielolsen

What

Allow simulation engine inputs to be created without uploading them to the server or touching the ScenarioList/ExecuteList files.

Why

  • For use with the simulation engine in a 'manual' mode (not controlled by PowerSimData)
  • To improve testability of the input generation process

How

  • Refactor prepare_mpc_file method of powersimdata.scenario.execute.SimulationInput to remove the matfile copy/upload step.
    • This can be moved into the prepare_simulation_input method of powersimdata.scenario.execute.Execute.
  • Similarly, refactor the prepare_profile method of powersimdata.scenario.execute.SimulationInput to separate the logic for determining whether and how to prepare profiles from the process of copying/uploading them and/or creating symlinks.

Metadata

Metadata

Labels

refactorCode that is being refactored

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions