We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
L1_INTER_SHOCK_AMPLITUDE = 100 # Amplitude of wave L1_INTER_SHOCK_PERIOD = 10 # Period of wave num_points = (TIMESTEPS - final_time) - initial_time t = np.arange(initial_time, initial_time + num_points)
raw_shock_signal = ( L1_INTER_SHOCK_AMPLITUDE * np.sin(2 * np.pi * t / L1_INTER_SHOCK_PERIOD) + L1_INTER_SHOCK_AMPLITUDE ) L1_INTER_SHOCK_SIGNAL = np.array([floor(max(x, 1)) for x in raw_shock_signal])
intermit_shock_gas_fee_l1_time_series = np.zeros(TIMESTEPS) intermit_shock_gas_fee_blob_time_series = np.zeros(TIMESTEPS)
intermit_shock_gas_fee_l1_time_series[0:initial_time] = steady_gas_fee_l1_time_series[ 0:initial_time ].copy() intermit_shock_gas_fee_l1_time_series[-final_time:] = steady_gas_fee_l1_time_series[ -final_time: ].copy() intermit_shock_gas_fee_l1_time_series[initial_time : TIMESTEPS - final_time] = ( steady_gas_fee_l1_time_series[initial_time : TIMESTEPS - final_time].copy() + L1_INTER_SHOCK_SIGNAL )
The text was updated successfully, but these errors were encountered:
No branches or pull requests
L1_INTER_SHOCK_AMPLITUDE = 100 # Amplitude of wave
L1_INTER_SHOCK_PERIOD = 10 # Period of wave
num_points = (TIMESTEPS - final_time) - initial_time
t = np.arange(initial_time, initial_time + num_points)
raw_shock_signal = (
L1_INTER_SHOCK_AMPLITUDE * np.sin(2 * np.pi * t / L1_INTER_SHOCK_PERIOD)
+ L1_INTER_SHOCK_AMPLITUDE
)
L1_INTER_SHOCK_SIGNAL = np.array([floor(max(x, 1)) for x in raw_shock_signal])
intermit_shock_gas_fee_l1_time_series = np.zeros(TIMESTEPS)
intermit_shock_gas_fee_blob_time_series = np.zeros(TIMESTEPS)
intermit_shock_gas_fee_l1_time_series[0:initial_time] = steady_gas_fee_l1_time_series[
0:initial_time
].copy()
intermit_shock_gas_fee_l1_time_series[-final_time:] = steady_gas_fee_l1_time_series[
-final_time:
].copy()
intermit_shock_gas_fee_l1_time_series[initial_time : TIMESTEPS - final_time] = (
steady_gas_fee_l1_time_series[initial_time : TIMESTEPS - final_time].copy()
+ L1_INTER_SHOCK_SIGNAL
)
The text was updated successfully, but these errors were encountered: