Trying to fix discontinuities.

Using masked arrays to ignore NaNs from 0-width sections,
which are generated by discontinuities. When summed, masked
constants are treated as 0 in iPython notebook. However
sum() spits out "masked" when actually tested...