Update to use new version of update_options
This commit is contained in:
parent
317805f4c3
commit
2265b2a69e
1 changed files with 3 additions and 3 deletions
|
|
@ -23,7 +23,6 @@ def plot_gc(data, options=None):
|
||||||
|
|
||||||
|
|
||||||
# Update options
|
# Update options
|
||||||
required_options = ['force_reload', 'x_vals', 'y_vals', 'which_cycles', 'limit', 'exclude_cycles', 'show_plot', 'summary', 'charge', 'discharge', 'colours', 'differentiate_charge_discharge', 'gradient', 'interactive', 'interactive_session_active', 'rc_params', 'format_params', 'save_gif', 'save_path', 'fps']
|
|
||||||
default_options = {
|
default_options = {
|
||||||
'force_reload': False,
|
'force_reload': False,
|
||||||
'x_vals': 'capacity', 'y_vals': 'voltage',
|
'x_vals': 'capacity', 'y_vals': 'voltage',
|
||||||
|
|
@ -42,10 +41,11 @@ def plot_gc(data, options=None):
|
||||||
'format_params': {},
|
'format_params': {},
|
||||||
'save_gif': False,
|
'save_gif': False,
|
||||||
'save_path': 'animation.gif',
|
'save_path': 'animation.gif',
|
||||||
'fps': 1
|
'fps': 1,
|
||||||
|
'fig': None, 'ax': None
|
||||||
}
|
}
|
||||||
|
|
||||||
options = aux.update_options(options=options, required_options=required_options, default_options=default_options)
|
options = aux.update_options(options=options, default_options=default_options)
|
||||||
|
|
||||||
|
|
||||||
# Read data if not already loaded
|
# Read data if not already loaded
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue