Skip to content

Commit 0498ec0

Browse files
authored
Update SpecNec_executable_streamlit.py
1 parent e16644d commit 0498ec0

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

fun_SPEC_NEC/SpecNec_executable_streamlit.py

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
import numpy as np
22
import pandas as pd
33
import matplotlib.pyplot as plt
4-
# import matplotlib.animation as animation
5-
# import mpld3
6-
# from mpld3 import plugins
7-
from IPython.display import HTML
8-
# import os
9-
10-
11-
# def fun_Nec(n, z, I, fads, r, R, fip, fie, TR):
124

135
# Define input parameters
146
# Ratio entre ordenadas espectrales Sa(T = 0.1 s) y el PGA para el periodo de retorno seleccionado
@@ -71,29 +63,7 @@
7163
legend = plt.legend(fontsize=10)
7264
legend.get_frame().set_edgecolor('none')
7365
ax1.grid(which='both', axis='x', alpha=0.5)
74-
plt.show()
75-
76-
77-
# UHS_E = np.column_stack((Tie,Sae))
78-
# UHS_I = np.column_stack((Tie,Sai))
79-
80-
# current_directory = os.getcwd()
81-
# folder_name = 'Results_NEC_UHS_TR_' + TR
82-
# folder_path = os.path.join(current_directory, folder_name)
83-
84-
# if not os.path.exists(folder_path):
85-
# os.makedirs(folder_path)
86-
87-
# file_path1 = os.path.join(folder_path, 'NEC_UHS_E_' + '.AT2')
88-
# file_path2 = os.path.join(folder_path, 'NEC_UHS_I_' + '.AT2')
89-
90-
# np.savetxt(file_path1, UHS_E, delimiter='\t', fmt='%.6f')
91-
# np.savetxt(file_path2, UHS_I, delimiter='\t', fmt='%.6f')
92-
93-
# fig_path1 = os.path.join(folder_name, 'fig1_UHS_E_I_TR_' + TR + '.png')
94-
# fig1.savefig(fig_path1)
95-
96-
# print('\x1b[1;34m Folder Path =', folder_path)
66+
plt.show()
9767

9868

9969
# return Resul, fig1, folder_path

0 commit comments

Comments
 (0)