Skip to content

Commit c7375a7

Browse files
committed
plot_group -> plot_group_model (for consistency)
1 parent 77a1fbb commit c7375a7

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

specparam/objs/group.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import numpy as np
1212

1313
from specparam.objs import SpectralModel
14-
from specparam.plts.group import plot_group
14+
from specparam.plts.group import plot_group_model
1515
from specparam.core.items import OBJ_DESC
1616
from specparam.core.utils import check_inds
1717
from specparam.core.errors import NoModelError
@@ -343,10 +343,11 @@ def get_params(self, name, col=None):
343343
return get_group_params(self.group_results, name, col)
344344

345345

346-
@copy_doc_func_to_method(plot_group)
346+
@copy_doc_func_to_method(plot_group_model)
347347
def plot(self, save_fig=False, file_name=None, file_path=None, **plot_kwargs):
348348

349-
plot_group(self, save_fig=save_fig, file_name=file_name, file_path=file_path, **plot_kwargs)
349+
plot_group_model(self, save_fig=save_fig, file_name=file_name,
350+
file_path=file_path, **plot_kwargs)
350351

351352

352353
@copy_doc_func_to_method(save_group_report)

specparam/plts/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
@savefig
2222
@check_dependency(plt, 'matplotlib')
23-
def plot_group(group, **plot_kwargs):
23+
def plot_group_model(group, **plot_kwargs):
2424
"""Plot a figure with subplots visualizing the parameters from a group model object.
2525
2626
Parameters

specparam/tests/plts/test_group.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
###################################################################################################
1515

1616
@plot_test
17-
def test_plot_group(tfg, skip_if_no_mpl):
17+
def test_plot_group_model(tfg, skip_if_no_mpl):
1818

19-
plot_group(tfg, file_path=TEST_PLOTS_PATH,
20-
file_name='test_plot_group.png')
19+
plot_group_model(tfg, file_path=TEST_PLOTS_PATH,
20+
file_name='test_plot_group_model.png')
2121

2222
# Test error if no data available to plot
2323
tfg = SpectralGroupModel()

0 commit comments

Comments
 (0)