Cadence window bug fix.
Cadence window bug fix.

For first observation of the night, subtract the length of the night from
the "N night cadence" so that an object observed at the end of last night
can be observed at the beginning of this one.

ZwickyTransientFacility/ztf_sim