-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add init calls in SerdeAPI trait methods #83
Conversation
@calbaker This is ready for review. Doesn't feature the |
Actually, going to switch this to draft and add the |
@calbaker I'm actually having second thoughts about the So it seems like this fastsim/rust/fastsim-core/src/cycle.rs Lines 846 to 862 in 2f4f433
Meaning if someone just uses fastsim/rust/fastsim-core/src/cycle.rs Lines 722 to 732 in 2f4f433
I think this small case is not enough to warrant |
Replaces #59
SerdeAPI
docstring enhancementsSerdeAPI::from_...
methods callinit
now!no_elec_sys
, this turned out to not be strictly necessary for tests to pass, but no sense in checking it forveh_pt_type == Conv
to_rust=True
resulted inmodern_max
defaulting to zero instead of setting the parameter, fixed by uncommenting this line:fastsim/rust/fastsim-core/src/vehicle.rs
Line 752 in a1ea335
actually, do we want this to only be set ifdid thisself.modern_max
is zero?initialized: bool
field forRustCycle
andRustVehicle
to not rerunSerdeAPI::init
ifself.initialized == true