src/measure.py

Fri, 08 May 2026 17:16:34 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 08 May 2026 17:16:34 -0500
changeset 4
49b062acace9
parent 1
a4137aedcb3a
permissions
-rw-r--r--

Do not directly depend on ndarray, but through numpy

import numpy as np


class Measure:
    def __init__(self, points, alphas):
        self.points = map(np.array, points)
        self.alphas = alphas

    def __iter__(self):
        return zip(self.points, self.alphas)

mercurial