Skip to content

Commit 4ed6d45

Browse files
authored
Merge pull request #410 from JustinBonus/master
Fix error in stochasticWaves that caused sensitivity analysis results to fail to visualize
2 parents 17f69ea + 25bd886 commit 4ed6d45

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

modules/createEVENT/stochasticWave/Jonswap.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929

3030
input_args = sys.argv[1:]
3131

32-
print( # noqa: T201
33-
'Jonswap.py - Backend-script post_process_sensors.py running: '
34-
+ str(sys.argv[0])
35-
)
36-
print( # noqa: T201
37-
'post_process_sensors.py - Backend-script post_process_sensors.py received input args: '
38-
+ str(input_args)
39-
)
32+
# print( # noqa: T201
33+
# 'Jonswap.py - Backend-script post_process_sensors.py running: '
34+
# + str(sys.argv[0])
35+
# )
36+
# print( # noqa: T201
37+
# 'post_process_sensors.py - Backend-script post_process_sensors.py received input args: '
38+
# + str(input_args)
39+
# )
4040

4141
inputFile = sys.argv[1] # noqa: N816
4242
outputPath = sys.argv[2] # noqa: N816
@@ -47,7 +47,7 @@
4747
with open(inputFile, encoding='utf-8') as BIMFile: # noqa: PTH123
4848
bim = json.load(BIMFile)
4949
for event_id in range(1):
50-
print('Running a sample simulation with JSON input parameters') # noqa: T201
50+
# print('Running a sample simulation with JSON input parameters') # noqa: T201
5151
g = 9.80665 # gravity [m/s^2]
5252
rho = 1000.0 # water density
5353

@@ -165,7 +165,7 @@
165165

166166
# if (si == seeds[-1]):
167167

168-
print('Saving wave spectra and time series') # noqa: T201
168+
# print('Saving wave spectra and time series') # noqa: T201
169169
spectra_df = pd.DataFrame()
170170

171171
spectra_df['Frequency'] = freq

modules/createEVENT/stochasticWave/StochasticWave.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ def readRV(aimFilePath='AIM.json', eventFilePath='EVENT.json'): # noqa: D103, N
196196
addFloorForceToEvent(
197197
timeSeriesArray, patternsArray, floorForces.X, 'X', floor, deltaT
198198
)
199-
addFloorForceToEvent(
200-
timeSeriesArray, patternsArray, floorForces.Y, 'Y', floor, deltaT
201-
)
199+
# addFloorForceToEvent(
200+
# timeSeriesArray, patternsArray, floorForces.Y, 'Y', floor, deltaT
201+
# )
202202
addFloorPressure(pressureArray, floor)
203203

204204
eventDict['Events'].append(event_json)
@@ -237,9 +237,9 @@ def writeEVENT(forces, eventFilePath, deltaT=1.0): # noqa: D103, N802, N803
237237
addFloorForceToEvent(
238238
timeSeriesArray, patternsArray, floorForces.X, 'X', floor, deltaT
239239
)
240-
addFloorForceToEvent(
241-
timeSeriesArray, patternsArray, floorForces.Y, 'Y', floor, deltaT
242-
)
240+
# addFloorForceToEvent(
241+
# timeSeriesArray, patternsArray, floorForces.Y, 'Y', floor, deltaT
242+
# )
243243
addFloorPressure(pressureArray, floor)
244244

245245
with open(eventFilePath, 'w', encoding='utf-8') as f: # noqa: PTH123

0 commit comments

Comments
 (0)