Skip to content

Update to have more control on object clearing when adding data #178

@TomDonoghue

Description

@TomDonoghue

Right now, if you use add_data to add data to an existing FOOOF object, it automatically clears the object of prior results & data. This doesn't anticipate the use case of re-loading a FOOOF object with just results, and then later adding data, to plot data and results together.

Suggested fix: add_data should have an optional argument clear, that indicates whether to clear prior results when adding new data.

Related ToDo: check through other add_* methods, add see if there are analogous issues, and related updates.

Metadata

Metadata

Assignees

Labels

2.0Targetted for the specparam 2.0 release.enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions