Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions modules/createEVENT/stochasticWave/Jonswap.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@

input_args = sys.argv[1:]

print( # noqa: T201
'Jonswap.py - Backend-script post_process_sensors.py running: '
+ str(sys.argv[0])
)
print( # noqa: T201
'post_process_sensors.py - Backend-script post_process_sensors.py received input args: '
+ str(input_args)
)
# print( # noqa: T201
# 'Jonswap.py - Backend-script post_process_sensors.py running: '
# + str(sys.argv[0])
# )
# print( # noqa: T201
# 'post_process_sensors.py - Backend-script post_process_sensors.py received input args: '
# + str(input_args)
# )

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

Expand Down Expand Up @@ -165,7 +165,7 @@

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

print('Saving wave spectra and time series') # noqa: T201
# print('Saving wave spectra and time series') # noqa: T201
spectra_df = pd.DataFrame()

spectra_df['Frequency'] = freq
Expand Down
12 changes: 6 additions & 6 deletions modules/createEVENT/stochasticWave/StochasticWave.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ def readRV(aimFilePath='AIM.json', eventFilePath='EVENT.json'): # noqa: D103, N
addFloorForceToEvent(
timeSeriesArray, patternsArray, floorForces.X, 'X', floor, deltaT
)
addFloorForceToEvent(
timeSeriesArray, patternsArray, floorForces.Y, 'Y', floor, deltaT
)
# addFloorForceToEvent(
# timeSeriesArray, patternsArray, floorForces.Y, 'Y', floor, deltaT
# )
addFloorPressure(pressureArray, floor)

eventDict['Events'].append(event_json)
Expand Down Expand Up @@ -237,9 +237,9 @@ def writeEVENT(forces, eventFilePath, deltaT=1.0): # noqa: D103, N802, N803
addFloorForceToEvent(
timeSeriesArray, patternsArray, floorForces.X, 'X', floor, deltaT
)
addFloorForceToEvent(
timeSeriesArray, patternsArray, floorForces.Y, 'Y', floor, deltaT
)
# addFloorForceToEvent(
# timeSeriesArray, patternsArray, floorForces.Y, 'Y', floor, deltaT
# )
addFloorPressure(pressureArray, floor)

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