afc329eb9d2afa8a180b2cd0e0d4ed9389b39f68,nilmtk/stats/electricity/single.py,,on,#,413

Before Change



    if max_sample_period is not None:
        // add an "off" entry whenever data is lost for > self.max_sample_period
        time_delta = np.diff(series.index.values)
        dropout_dates = series.index[:-1][time_delta > max_sample_period]
        max_sample_period_secs = max_sample_period / np.timedelta64(1, "s")
        insert_offs = pd.Series(False,
                                index=dropout_dates +

After Change



    if max_sample_period is not None:
        // add an "off" entry whenever data is lost for > self.max_sample_period
        time_delta = np.diff(series.index.values) / np.timedelta64(1, "s")
        dropout_dates = series.index[:-1][time_delta > max_sample_period]
        insert_offs = pd.Series(False,
                                index=dropout_dates +
                                pd.DateOffset(seconds=max_sample_period))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: nilmtk/nilmtk
Commit Name: afc329eb9d2afa8a180b2cd0e0d4ed9389b39f68
Time: 2014-01-03
Author: jack-list@xlk.org.uk
File Name: nilmtk/stats/electricity/single.py
Class Name:
Method Name: on


Project Name: nilmtk/nilmtk
Commit Name: bd17edac6a1b18efbd9bb7a1398734a815955bc2
Time: 2014-01-09
Author: jack-list@xlk.org.uk
File Name: nilmtk/stats/electricity/single.py
Class Name:
Method Name: get_gap_starts_and_gap_ends


Project Name: neurodsp-tools/neurodsp
Commit Name: 12337110645f009d168b8798b9f214c430391b21
Time: 2020-07-06
Author: tdonoghue@ucsd.edu
File Name: neurodsp/timefrequency/hilbert.py
Class Name:
Method Name: freq_by_time