def METHOD_NAME(self, filename):
    properties = json.load(open(filename))
    self.i = int(properties.get('num_points', self.i))
    self.precision = int(properties.get('precision', self.precision))