Skip to content

Python refactoring: ideas #189

@farhi

Description

@farhi

iData and iFunc classes can inherit from multiple sub-classes, e.g.:

Master class:

  • base methods and properties: Data, Aliases, Axes, UserData, meta-data, ...
  • check, set, get, copy, ...

Sub classes (see https://github.com/McStasMcXtrace/iFit/blob/master/Docs/Methods.html):

  • I/O: populates the object by reading files. Methods: read/write
  • View: print-out, plot, subplot, edit, ...
  • Math Unary methods
  • Math Binary methods
  • Math statistics
  • Math integration, derivatives, projections
  • Math conv, corr, FFT
  • Math combine, cat, dog, slice, ...
  • Math interpolation

Then we assemble

  • iData(Master, I/O, Math, ...)

which builds all bits and allow each sub-class to be rather small.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions