Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Making examples self contained #46

Open
jd-lara opened this issue Dec 17, 2021 · 2 comments
Open

Making examples self contained #46

jd-lara opened this issue Dec 17, 2021 · 2 comments

Comments

@jd-lara
Copy link
Member

jd-lara commented Dec 17, 2021

Several examples, specially the PSI ones, depend on previous code and include calls like this one:

pkgpath = dirname(dirname(pathof(SIIPExamples)))
include(
    joinpath(pkgpath, "test", "3_PowerSimulations_examples", "01_operations_problems.jl"),
)

we should make the scripts independent and not rely on calling another script in the test folder to run.

@jd-lara
Copy link
Member Author

jd-lara commented Dec 17, 2021

To the point, runnning 02_sequential_simulations.jl looks like this:

image

@claytonpbarrows
Copy link
Member

With previous versions of PSI, this was useful because some of the examples were quite repetitive with a lot of repeated code and substantial overhead. With the addition of PowerSystemCaseBuilder, and the interface improvements in PowerSimulations, I agree that each example should be self contained. I'll address with the PSI updates.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants