72f3f5bf50ed2d91cdcfbe2cf47120a2df8883cd,nilmtk/results.py,Results,append,#Results#,51
Before Change
intersect = tf.intersect(timeframe)
if not intersect.empty:
raise ValueError("Periods overlap: " + str(tf) +
" " + str(timeframe))
row = pd.DataFrame(index=[timeframe.start],
columns=["end"] + new_results.keys())
row["end"] = timeframe.end
After Change
timeframe : nilmtk.TimeFrame
new_results : dict
if not isinstance(timeframe, TimeFrame):
raise TypeError("`timeframe` must be of type "nilmtk.TimeFrame","
" not "{}" type.".format(type(timeframe)))
if not isinstance(new_results, dict):
raise TypeError("`new_results` must of a dict, not "{}" type."
.format(type(new_results)))
// check that there is no overlap
for index, series in self._data.iterrows():
tf = TimeFrame(index, series["end"])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: nilmtk/nilmtk
Commit Name: 72f3f5bf50ed2d91cdcfbe2cf47120a2df8883cd
Time: 2014-11-26
Author: jack-list@xlk.org.uk
File Name: nilmtk/results.py
Class Name: Results
Method Name: append
Project Name: lingpy/lingpy
Commit Name: 997f7e378ffd48fd23107037534ad12cc471cdb6
Time: 2013-10-25
Author: frank@pc08447.Germanistik-Kunst.Uni-Marburg.DE
File Name: lingpy/basic/_parser.py
Class Name: _QLCParser
Method Name: _init_first
Project Name: scikit-optimize/scikit-optimize
Commit Name: 1d11cf4f65900c0a701c08830e7e4949ca99faba
Time: 2017-05-02
Author: jvmirca@gmail.com
File Name: skopt/optimizer/optimizer.py
Class Name: Optimizer
Method Name: _check_arguments