ituethoslab / make_a_data_object

Make a data object
GNU General Public License v3.0
2 stars 1 forks source link

Final value of data vectors is unnecessarily forced to zero #13

Closed xmacex closed 6 years ago

xmacex commented 6 years ago

A slice of 0, or whatever fill_value is set for DataObject.pi interpolation function, is created at the end of the precipitation data.

print(d.p)
>>> [3.2, 0, 0, 0, 4.0, 0.2, 3.1]
do = make_a_data_object.models.DataObject(d.a, d.p)
plt.plot(do.precipitation);

screen shot 2018-06-26 at 16 59 21

And do.plot_heatmap()

screen shot 2018-06-26 at 17 00 25

xmacex commented 6 years ago

It's a bit of a tricky thing to debug :-P But getting there

xmacex commented 6 years ago

Now

print(d.p)
>>> [3.2, 0, 0, 0, 4.0, 0.2, 3.1]
do = make_a_data_object.models.DataObject(d.a, d.p)
plt.plot(do.precipitation);

with screen shot 2018-06-26 at 21 37 22

and do.plot_heatmap()

screen shot 2018-06-26 at 21 37 30