Skip to content

Commit ebbb3d7

Browse files
committed
fix: return run_modes as dictionary
1 parent 05eebd4 commit ebbb3d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fooof/objs/fit.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -575,12 +575,12 @@ def get_run_modes(self):
575575
576576
Returns
577577
-------
578-
FOOOFRunModes
579-
Object containing the run_modes from the current object.
578+
data: dict
579+
Dictionary containing the run_modes from the current object.
580580
"""
581581

582-
return FOOOFRunModes(**{key : getattr(self, key) \
583-
for key in OBJ_DESC['run_modes']})
582+
return {key : getattr(self, key) \
583+
for key in OBJ_DESC['run_modes']}
584584

585585

586586
def get_meta_data(self):

0 commit comments

Comments
 (0)