mphowardlab / relentless

Computational materials design, with less code.
https://relentless.readthedocs.io
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Pilfer `__init__` methods for simulation operations #195

Closed mphoward closed 1 year ago

mphoward commented 1 year ago

To reduce maintenance, we should borrow the __init__ methods for the delegating simulation operations in the implementations like:

class EnsembleAverage:
    __init__ = analyze.EnsembleAverage.__init__

since 99% of the time, these do exactly the same thing.

mphoward commented 1 year ago

This will cause more headaches than it is worth worrying about inheritance, closing.