Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

![REVIEW 2 & 3 ] (1) ruff.spell-check fixed all files, (2) ruff.format files excluded, and (3) ruff.lint files excluded. (4) Updated Celeris wave-solver. #364

Merged
merged 34 commits into from
Jan 21, 2025

Conversation

JustinBonus
Copy link
Contributor

@JustinBonus JustinBonus commented Jan 21, 2025

  1. Spell-checked all files. Added excludes for domain specific variable spelling (e.g. in tcl scripts). Fairly confident this won't affect anyone's code.

2 & 3. Specific files and directories excluded from ruff.format and ruff.lint as they prevented new PRs from getting green checkmarks.

After the Symposium, may be good to have a policy for new PRs passing checks and which ruff flags (--add-noqa / --fix / --unsafe-fixes) can be used on important files. (@fmckenna @zsarnoczay @ioannis-vm)

Please review and re-include below in pyproject.toml as they are fixed (especially whale/main.py):

Directories:
"modules/performRegionalEventSimulation/regionalGroundMotion",
"modules/performSIMULATION/capacitySpectrum"

Files:
"modules/Workflow/whale/main.py",
"modules/createAIM/INP_FILE/INP_FILE.py",
"modules/createEVENT/IsolatedBuildingCFD/setup_case.py",
"modules/createEVENT/shakeMapEvent/shakeMapEvent.py",
"modules/performREC/transportation.py",
"modules/systemPerformance/REWET/REWET_Wrapper.py",
"modules/systemPerformance/ResidualDemand/run_residual_demand.py",
"modules/systemPerformance/ResidualDemand/transportation.py",
"modules/tools/BRAILS/runBrailsTransp.py",
"modules/performUQ/SimCenterUQ/UQengine.py",
"modules/performUQ/UCSD_UQ/runTMCMC.py",
"modules/performUQ/common/uq_utilities.py",
"modules/performUQ/dakota/DakotaUQ.py"

  1. Celeris EVT: updated features and more user customization. New examples, e.g. OSU TWB experiments on a 1:50 scale town (Seaside, OR) from Cox et al. 2008. Each sim takes ~60 sec on my PC's local GPU.

[Sample 1]
HydroUQ_CelerisAi_OSU-Seaside_SolitaryWave_sample1_2025 01 20

[Sample 2]
HydroUQ_CelerisAi_OSU-Seaside_SolitaryWave_sample2_2025 01 20

…/ examples) , update WorkflowApplications.json accordingly.
…ser-input and hosted within app repos (e.g. HydroUQ/Examples) later
…e -f, -d, and -b for the config JSON filename, directory containing input files, and bathymetry filename. Order enforced temporarily (python3 ./setrun.py -f config.json -d ./examples/CrescentCity -b bathy.txt)
…icial wind waves and a shorter period / higher amplitude tsunami wave (1500 -> 1000sec, 1 -> 2.3m) so that local PC's with GPU will take around 3-10 minutes to simulate
…milar to WebGPU version. Added in OSU_Seaside example (includes Lynett et al 2007 experimental parcel-scale buildings in a town), eventually apply BRAILS++ to generate custom inventories as a displacement map on the bathymetry / infer the existing scaled building properties and perimeters to allow NLSW / Boussinesq wave load determination
…ng ruff feedback on new PRs as they fail. Would lint-format them myself, but don't want to risk breaking anyone's code.
… PRs from passing). Please review and re-include them.
@JustinBonus JustinBonus changed the title Update Celeris + Celeris examples + Fix spell-check for every SimCenterBackendApplications file. ![REVIEW 2 & 3 ] (1) ruff.spell-check fixed all files, (2) ruff.format files excluded, and (3) ruff.lint files excluded. (4) Updated Celeris wave-solver. Jan 21, 2025
@fmckenna fmckenna merged commit 230f286 into NHERI-SimCenter:master Jan 21, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants