Skip to content

Ac/performance cats#42

Open
acostarelli wants to merge 1 commit intomainfrom
ac/performance-cats
Open

Ac/performance cats#42
acostarelli wants to merge 1 commit intomainfrom
ac/performance-cats

Conversation

@acostarelli
Copy link
Collaborator

No description provided.

@acostarelli acostarelli requested a review from jd-lara February 26, 2026 20:53
# argv already somehow?
cats_dir = "/Users/acostare/Documents/CATS-CaliforniaTestSystem/"
include(joinpath(cats_dir, "Sienna/build_CATS.jl"))
sys = build_CATS_system(first_order = true)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
sys = build_CATS_system(first_order = true)
sys = build_CATS_system(; first_order = true)
output_dir = mktempdir(; cleanup = true)
status = build!(model; output_dir = joinpath(output_dir, "CATS_UC"))
end
build_ok = status == IOM.ModelBuildStatus.BUILT

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
build_ok = status == IOM.ModelBuildStatus.BUILT
build_ok = status == IOM.ModelBuildStatus.BUILT
@luke-kiernan luke-kiernan changed the base branch from main to lk/problem-container-ic-refactor February 27, 2026 21:05
@luke-kiernan luke-kiernan changed the base branch from lk/problem-container-ic-refactor to main February 27, 2026 21:25
try
# TODO Should probably be passed through argv but I think Github CI uses
# argv already somehow?
cats_dir = "/Users/acostare/Documents/CATS-CaliforniaTestSystem/"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a way to tell GitHub CI actions "clone this repo locally as setup." But then it'd also have to read the time series data from the CSV, which takes ~15 minutes. Not good.

A more robust solution would be to add the CATS system to PSB's system catalog, so that we can use it across the Sienna ecosystem via using PSB; sys = PSB.build_system(FooSystemCategory, "CATS_California"). There was discussion of doing that a while back...alternatively, we convert the time series CSV into something cross-platform (is JDL2 portable between machines?) and upload it somewhere.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CATS is too large to try to run in the free CI-CD. This is a performance test geared towards offline testing IMO

@luke-kiernan
Copy link
Collaborator

Oh there's also one comment that got lost somehow: I see that you're having issues with the CATS system solving successfully. Check the device formulations and make sure they're reasonable, some sort of Commitment or FixedOutput, similar to what we're using in the other performance script for the UC step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants