-
Notifications
You must be signed in to change notification settings - Fork 2
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
Av 1076 fix monte python #41
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Monte Carlo plots are still not showing data from multiple runs and 3sigma, DO NOT MERGE UNTIL FIXED
…ation seems to not work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mainly code styling changes, will do another pass for functionality
enable_direction_variance=atmo_args.get("enable_direction_variance", False), | ||
enable_magnitude_variance=atmo_args.get("enable_magnitude_variance", False), | ||
nominal_wind_magnitude=atmo_args.get("nominal_wind_magnitude", 0.0), | ||
nominal_wind_direction=atmo_args.get("nominal_wind_direction", np.array([0, 0, 0]))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably better for the sake of standardization and legibility to have each of these fields explicitly defined in the dictionary before being passed in
|
||
# Indices of each state variable in the output array | ||
# kf and rkf values are arrays containing position, velocity and acceleration in each axis | ||
indices = {"time":0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better as an enum, see enum package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also looking back, probably better to just have a global dataframe or smth to hold sim data because then we can access fields by property name and it's alr sorted by timestamps
"kalman_raccel_z":60} | ||
|
||
default_output_folder = 'Output' | ||
def rmse(predictions, targets): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type hints needed
"launch_angle_stddev": 0.00} | ||
|
||
monte(dt, kf_dt, samples, output_folder, target_size, **sim_params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: newlines at end of files
"launch_angle_stddev": 0.00} | ||
|
||
monte(dt, kf_dt, samples, output_folder, target_size, **sim_params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk if out of scope but idt this code is thread safe so if we wanna ramp up number of runs in parallel we need to do that
Restructured code into Configurations, Simulation core, executables, and output.
Cleaned up executing files.
Pysim can now be called by monte-python for Monte Carlo analysis
Monte-python now outputs to csv files