dbfe2afe79ac497075e50a3e569a1d63a346fb4d,pyemma/_base/serialization/serialization.py,SerializableMixIn,_validate_interpolation_map,#SerializableMixIn#,142
Before Change
// check for valid operations: add, rm, mv
valid_ops = ("set", "rm", "mv")
if not all(action[0] in valid_ops for actions in inter_map.itervalues() for action in actions):
raise DeveloperError("Your _serialize_interpolation_map contains invalid operations. "
"Valid ops are: {}".format(valid_ops))
After Change
// check for valid operations: add, rm, mv, map
valid_ops = ("set", "rm", "mv", "map")
for k, v in inter_map.items():
if not is_int(k):
raise DeveloperError("all keys of _serialize_interpolation_map "
"have to be of type int (class version numbers)")
if not isinstance(v, (list, tuple)):
raise DeveloperError("actions per version have to be list or tuple")
for action in v:
if action[0] not in valid_ops:
raise DeveloperError("Your _serialize_interpolation_map contains invalid operations. "
"Valid ops are: {valid_ops}. You provided {provided}"
.format(valid_ops=valid_ops, provided=action[0]))
self._serialize_interpolation_map = inter_map
def __interpolate(self, state):
// Lookup attributes in interpolation map according to version number of the class.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: markovmodel/PyEMMA
Commit Name: dbfe2afe79ac497075e50a3e569a1d63a346fb4d
Time: 2017-04-06
Author: m.scherer@fu-berlin.de
File Name: pyemma/_base/serialization/serialization.py
Class Name: SerializableMixIn
Method Name: _validate_interpolation_map
Project Name: matplotlib/matplotlib
Commit Name: 18b5c87e2318218ada9799a069c0b65fae0b1e28
Time: 2017-12-18
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/rcsetup.py
Class Name:
Method Name:
Project Name: polyaxon/polyaxon
Commit Name: df2089b7132ced1f1c5322b338f686840f947438
Time: 2018-04-15
Author: mouradmourafiq@gmail.com
File Name: polyaxon_schemas/utils.py
Class Name:
Method Name: pvalues