Closed rafa-guedes closed 6 years ago
self.__class__.__name__ is no longer printing out the correct class name:
self.__class__.__name__
$ print self.__class__.__name__ 'to_ww3' $ ds.spec <to_ww3> Dimensions: (dir: 36, freq: 24, lat: 1, lon: 1, time: 25) Coordinates: * lat (lat) float64 -38.17 * lon (lon) float64 174.7 * time (time) datetime64[ns] 2016-10-10T12:00:00 2016-10-10T13:00:00 ... * freq (freq) float64 0.04 0.0452 0.0511 0.0577 0.0652 0.0737 0.0833 ... * dir (dir) float64 5.0 15.0 25.0 35.0 45.0 55.0 65.0 75.0 85.0 95.0 ... Data variables: efth (time, lat, lon, freq, dir) float64 0.0 0.0 0.0 0.0 0.0 0.0 0.0 ... wspd (time, lat, lon) float64 2.899 3.62 4.703 5.6 5.219 4.486 3.506 ... wdir (time, lat, lon) float64 79.01 61.93 48.96 48.1 50.84 49.74 ... dpt (time, lat, lon) float64 24.42 24.42 24.42 24.42 24.42 24.42 ...
This is probably due to the metaclass definition which import these input functions dynamically.
Fixed with https://github.com/metocean/wavespectra/commit/df11faa950d0e44beac1ad4df3aa43047a9925e5
self.__class__.__name__
is no longer printing out the correct class name:This is probably due to the metaclass definition which import these input functions dynamically.