simple-access-layer / source

The core repository of the Simple Access Layer.
https://simple-access-layer.github.io/documentation/
European Union Public License 1.2
2 stars 6 forks source link

Refactor node object architecture #75

Open TOFarmer opened 3 years ago

TOFarmer commented 3 years ago

Problem to solve

The architecture of how SAL describes nodes (i.e., BranchReport, LeafReport, Branch, and DataClass) has two issues:

  1. While all four base classes list above can be returned from a GET request, they do not share a common interface. While they effectively implement a common interface, it would be preferable for this to be defined.

  2. There is a signficant amount of code duplication, which is particularly prevalent with SummaryObject subclasses and 'DataObject' classes which contain numpy.ndarray objects.

Proposal

What does success look like, and how can we measure that?