From 3f1c58b1b19ee71f15cc88706f5abb3a6fd211ee Mon Sep 17 00:00:00 2001 From: Adam Zsarnoczay <33822153+zsarnoczay@users.noreply.github.com> Date: Mon, 17 Nov 2025 14:30:16 -0800 Subject: [PATCH] bugfix in SIM/capacitySpectrum Fix inferred DesignLevel strings in CapacityModels to make them compatible with the updated lookup logic. --- .../performSIMULATION/capacitySpectrum/CapacityModels.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/performSIMULATION/capacitySpectrum/CapacityModels.py b/modules/performSIMULATION/capacitySpectrum/CapacityModels.py index eb125e7cd..3446ea5b2 100644 --- a/modules/performSIMULATION/capacitySpectrum/CapacityModels.py +++ b/modules/performSIMULATION/capacitySpectrum/CapacityModels.py @@ -55,15 +55,15 @@ import numpy as np import pandas as pd -ap_DesignLevel = {1940: 'PC', 1975: 'MC', 2100: 'HC'} # noqa: N816 +ap_DesignLevel = {1940: 'Pre-Code', 1975: 'Moderate-Code', 2100: 'High-Code'} # noqa: N816 # original: -# ap_DesignLevel = {1940: 'PC', 1940: 'LC', 1975: 'MC', 2100: 'HC'} +# ap_DesignLevel = {1940: 'Pre-Code', 1940: 'Low-Code', 1975: 'Moderate-Code', 2100: 'High-Code'} # Note that the duplicated key is ignored, and Python keeps the last # entry. -ap_DesignLevel_W1 = {0: 'MC', 1975: 'MC', 2100: 'HC'} # noqa: N816 +ap_DesignLevel_W1 = {0: 'Moderate-Code', 1975: 'Moderate-Code', 2100: 'High-Code'} # noqa: N816 # original: -# ap_DesignLevel_W1 = {0: 'PC', 0: 'LC', 1975: 'MC', 2100: 'HC'} +# ap_DesignLevel_W1 = {0: 'Pre-Code', 0: 'Low-Code', 1975: 'Moderate-Code', 2100: 'High-Code'} # same thing applies