Ejemplo n.º 1
0
    def save(self, filename):
        l = []
        for epoch, (x, y) in nputils.get_items_sorted_by_keys(self.cores):
            r, theta = nputils.coord_xy_to_rtheta(x, y)
            l.append([epoch.strftime("%Y-%m-%d"), 0, r, np.degrees(theta)])

        np.savetxt(filename, l, ['%s', '%s', '%s', '%s'])
Ejemplo n.º 2
0
 def new_from_segment(self, segment):
     coord_sys = segment.get_segmented_image().get_img().get_coord_sys()
     y, x = coord_sys.index2coord(segment.get_coord())
     r, theta = nputils.coord_xy_to_rtheta(x, y)