Skip to content
New issue

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

Clean up time series initialization #314

Open
3 tasks
SeanMcOwen opened this issue May 22, 2024 · 0 comments
Open
3 tasks

Clean up time series initialization #314

SeanMcOwen opened this issue May 22, 2024 · 0 comments
Labels

Comments

@SeanMcOwen
Copy link
Contributor

SeanMcOwen commented May 22, 2024

  • zero_timeseries = np.zeros(TIMESTEPS * 10) in params.py
  • In params.py...

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
)

  • build_censor_series_from_role
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant