コード例 #1
0
ファイル: bball_viewer_class.py プロジェクト: dhomeier/glue
    def make_selector(self, roi, x, y):

        state = RoiSubsetState()
        state.roi = roi
        state.xatt = x.id
        state.yatt = y.id

        return state
コード例 #2
0
def make_selector(roi, x, y):

    state = RoiSubsetState()
    state.roi = roi
    state.xatt = x.id
    state.yatt = y.id

    return state
コード例 #3
0
ファイル: client.py プロジェクト: astrofrog/glue
    def apply_roi(self, roi):

        subset_state = RoiSubsetState()
        xroi, yroi = roi.to_polygon()
        x, y = self._get_plot_attributes()
        subset_state.xatt = x
        subset_state.yatt = y
        subset_state.roi = PolygonalROI(xroi, yroi)
        mode = EditSubsetMode()
        mode.update(self.data, subset_state, focus_data=self.display_data)
コード例 #4
0
    def apply_roi(self, roi):

        subset_state = RoiSubsetState()
        xroi, yroi = roi.to_polygon()
        x, y = self._get_plot_attributes()
        subset_state.xatt = x
        subset_state.yatt = y
        subset_state.roi = PolygonalROI(xroi, yroi)
        mode = EditSubsetMode()
        mode.update(self.data, subset_state, focus_data=self.display_data)
コード例 #5
0
ファイル: glueviz.py プロジェクト: beccajcarlson/lasagna
 def make_selector(self, roi, source, y):
     """Selections coming from ImageJ correspond to a rectangle in x and y.
     Could propagate more complex selection criteria from image (e.g.,
     magic wand for nearest neighbors on barcode simplex)
     """
     state = RoiSubsetState()
     state.roi = roi
     state.xatt = source.id
     state.yatt = y.id
     return state
コード例 #6
0
def make_selector(roi, full_path):
    if full_path:
        hit = roi.contains(timelines['x'], timelines['y']).any(axis=1)
        rids = timelines[hit].index.unique()
        return CategorySubsetState('run_id', rids)

    state = RoiSubsetState()
    state.xatt = 'x'
    state.yatt = 'y'
    state.roi = roi
    return state