question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow drive cycles in experiments

See original GitHub issue

Add functionality to allow running a drive cycle as part of an experiment. For example:

pybamm.Experiment(["Run US06 for 1 hour"], functions={"US06": US06_function})

Currently, the way experiments are implemented require current/voltage/power to be constant (they are set up as InputParameter objects). So this could be challenging to implement, and would depend on #895 being possible.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tinosulzercommented, Nov 10, 2021

Closed via #1793

1reaction
Saransh-cppcommented, Mar 30, 2021

With the new setup type the Current input (and actually voltage input and power input) are only needed for the parameter values. So once you update the parameter values you can throw them away. Something like

I = op_inputs.pop("Current input [A]")
new_parameter_values.update("Current function [A]": I)

might just work out of the box. Since op_inputs is a pointer to an object in self._experiment_inputs this will also remove “Current input [A]” from the relevant dictionary in self._experiment_inputs. operating_inputs should be unchanged

I will definitely look into this and if everything goes fine, I will make a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DRIVE: Drive-Cycle Rapid Investigation, Visualization, and ...
The Drive-Cycle Rapid Investigation, Visualization, and Evaluation (DRIVE) analysis tool produces representative drive cycles at record speed from large ...
Read more >
How to Perform a Basic Drive Cycle - RepairPal
A Drive Cycle will complete the readiness monitors for your car's emissions control system. Here are step-by-step instructions to perform a basic Drive ......
Read more >
Implementation of Driving Cycles Based on Driving Style ...
In this research, using MATLAB/Simulink® we developed the AVDC (Autonomous Vehicle Driving Cycle) Tool, which is capable of generating driving ...
Read more >
Base Experiment Class — PyBaMM 22.11.1 documentation
The stopping conditions should be a circuit state, e.g. “1 A”, “C/50” or “3 V”. The parameter drive_cycles is mandatory to run drive...
Read more >
Stubborn Monitors and Drive Cycles - YouTube
What is a monitor?--Does complete mean good?--Why won't they complete?--Forcing them to run and more!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found