LSSTDESC / rail_gpz_v1

RAIL-wrapped version of Peter Hatfields pure python implementation of GPz-v1
MIT License
0 stars 1 forks source link

Update for ceci version 2 #19

Closed joezuntz closed 3 months ago

joezuntz commented 3 months ago

This PR updates the constructors of all stage subclasses to work with ceci version 2, in which aliases are specified in the constructor. A similar PR has been opened for each RAIL repo.

The main change is to the the constructors to accept any keywords with **kwargs and pass them to the parent class.

I have also removed any constructors which did not do anything except call the parent class constructor. Since this happens automatically if you omit the constructor, these were redundant.

Finally, in constructors I have changed I have removed hard-coded parent classes in favour of the python3 recommended super() function. If the parent class are changed in the future the constructor will still work.