Skip to content

Commit 4c793b0

Browse files
committed
Merge branch 'master' into traditional-cmake
2 parents 83f0b0c + 1d754cd commit 4c793b0

6 files changed

Lines changed: 23 additions & 18 deletions

File tree

modules/Workflow/WorkflowApplications.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@
13581358
"description": "Path to the json file with mandatory input parameters."
13591359
},
13601360
{
1361-
"id": "tenantUnitsListPath",
1361+
"id": "tenantUnitListPath",
13621362
"type": "path",
13631363
"description": "Path to the csv file with tenant unit information."
13641364
},

modules/Workflow/whale/main.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,6 @@
6969
from copy import deepcopy
7070
from datetime import datetime
7171
from pathlib import Path, PurePath
72-
import platform
73-
74-
# check python
75-
76-
python_path= sys.executable
77-
a = platform.uname()
78-
79-
if a.system == "Darwin" and (not a.machine=='x86_64'):
80-
raise ValueError(f"Python version mismatch. Please update the python following the installation instruction. Current python {python_path} is based on machine={a.machine}, but we need the one for x86_64")
81-
exit(-2)
8272

8373
# ################# FMK - removing check on nheri-simcenter for moment ####################
8474

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
add_executable(extractEDP extractEDP.cpp)
22
target_include_directories(extractEDP PRIVATE ${CMAKE_SOURCE_DIR}/modules)
33
target_link_libraries(extractEDP PRIVATE jansson::jansson)
4-
file(RELATIVE_PATH _rel ${CMAKE_SOURCE_DIR}/modules ${CMAKE_CURRENT_SOURCE_DIR})
5-
install(TARGETS extractEDP DESTINATION ${_rel})
64

75
add_executable(createStandardUQ_Input createStandardUQ_Input.cpp)
86
target_include_directories(createStandardUQ_Input PRIVATE ${CMAKE_SOURCE_DIR}/modules)
97
target_link_libraries(createStandardUQ_Input PRIVATE jansson::jansson)
10-
install(TARGETS createStandardUQ_Input DESTINATION ${_rel})
118

129
add_library(commonUQ STATIC parseWorkflowInput.cpp)
1310
target_include_directories(commonUQ PUBLIC
1411
${CMAKE_SOURCE_DIR}/modules
1512
$<TARGET_PROPERTY:jansson::jansson,INTERFACE_INCLUDE_DIRECTORIES>)
1613

14+
15+
file(RELATIVE_PATH _rel ${CMAKE_SOURCE_DIR}/modules ${CMAKE_CURRENT_SOURCE_DIR})
16+
install(TARGETS createStandardUQ_Input DESTINATION ${_rel})
17+
install(TARGETS extractEDP DESTINATION ${_rel})
18+
1719
install(FILES
1820
uq_utilities.py quoFEM_RV_models.py parallel_runner_mpi4py.py
1921
adaptive_doe.py common_datamodels.py convergence_metrics.py
@@ -24,3 +26,4 @@ install(FILES
2426
DESTINATION ${_rel})
2527

2628
add_subdirectory(ERAClasses)
29+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
// dummy_driver.c
3+
// - simple c application to create a results.out file with a singular 0.0 entry
4+
// written: fmk 04/26
5+
6+
#include <stdio.h>
7+
int main() {
8+
FILE *f = fopen("results.out", "w");
9+
fprintf(f, "0.0");
10+
fclose(f);
11+
return 0;
12+
}

modules/performanceAssessment/ATC138/ATC138Wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def main(
348348
help='Path to the general_inputs JSON file',
349349
)
350350
parser.add_argument(
351-
'--tenantUnitsListPath',
351+
'--tenantUnitListPath',
352352
type=Path,
353353
default=None,
354354
help='Path to the tenant_units CSV file',
@@ -364,6 +364,6 @@ def main(
364364

365365
main(
366366
general_inputs_path = args.generalInputsPath,
367-
tenant_unit_list_path = args.tenantUnitsListPath,
367+
tenant_unit_list_path = args.tenantUnitListPath,
368368
optional_inputs_path = args.optionalInputsPath
369369
)

modules/performanceAssessment/REDi/REDiWrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ def main(args): # noqa: C901, D103, PLR0915
291291
log_output: List[str] = [] # noqa: FA100
292292

293293
for sample in range(num_samples):
294-
if buildingirreparableOrCollapsed[sample]:
294+
if buildingirreparableOrCollapsed.iloc[sample]:
295295
# Convert the replacement time coming out of Pelicun (worker-days) into days by dividing by the number of workers
296-
replacement_time = DVReplacementDict['Time'][sample] / num_workers
296+
replacement_time = DVReplacementDict['Time'].iloc[sample] / num_workers
297297

298298
final_results_dict[sample] = get_replacement_response(
299299
replacement_time=replacement_time

0 commit comments

Comments
 (0)