return v def _replot(self): pass # if use_convex_hull: # poly = convex_hull(poly) # xs, ys = poly.T # xs = hstack((xs, xs[0])) # ys = hstack((ys, ys[0])) # else: # xs, ys = poly.T # xs = hstack((xs, xs[0])) # ys = hstack((ys, ys[0])) # # # plot original # g.new_series(xs, ys) def _canvas_graph_item_default(self): g = CanvasGraphItem(canvas=self.canvas, ) return g if __name__ == '__main__': from launchers.helpers import build_version build_version('_uv') sv = LaserMineViewer() sv.configure_traits() # ============= EOF =============================================
return v def _replot(self): pass # if use_convex_hull: # poly = convex_hull(poly) # xs, ys = poly.T # xs = hstack((xs, xs[0])) # ys = hstack((ys, ys[0])) # else: # xs, ys = poly.T # xs = hstack((xs, xs[0])) # ys = hstack((ys, ys[0])) # # # plot original # g.new_series(xs, ys) def _canvas_graph_item_default(self): g = CanvasGraphItem(canvas=self.canvas, ) return g if __name__ == '__main__': from launchers.helpers import build_version build_version('_uv') sv = LaserMineViewer() sv.configure_traits() #============= EOF =============================================
def traits_view(self): v = View(VGroup( HGroup( Item('graph_container', show_label=False, style='custom', width=0.7, editor=ComponentEditor()), Item('manual_entry', width=0.3, show_label=False, style='custom')), HGroup(spring, Item('edit_plot_options', show_label=False))), title='Manual Entry Ideogram', resizable=True, height=500, width=700) return v if __name__ == '__main__': from launchers.helpers import build_version build_version('_experiment', set_path=True) mem = ManualEntryManager() mem.manual_entry.data[0].age = 1.04 mem.configure_traits() #============= EOF =============================================
def _stage_manager_default(self): ''' ''' args = dict(name='stage', configuration_name='stage', configuration_dir_name=self.configuration_dir_name, parent=self) return self._stage_manager_factory(args) if __name__ == '__main__': from pychron.core.helpers.logger_setup import logging_setup from pychron.initializer import Initializer from launchers.helpers import build_version build_version('_test') logging_setup('fusions co2') f = FusionsCO2Manager() f.use_video = True f.record_brightness = True ini = Initializer() a = dict(manager=f, name='FusionsCO2') ini.add_initialization(a) ini.run() # f.bootstrap() f.configure_traits() # def show_streams(self): # ''' # '''
v = View( VGroup( HGroup(Item('graph_container', show_label=False, style='custom', width=0.7, editor=ComponentEditor()), Item('manual_entry', width=0.3, show_label=False, style='custom') ), HGroup(spring, Item('edit_plot_options', show_label=False)) ), title='Manual Entry Ideogram', resizable=True, height=500, width=700 ) return v if __name__ == '__main__': from launchers.helpers import build_version build_version('_experiment', set_path=True) mem = ManualEntryManager() mem.manual_entry.data[0].age = 1.04 mem.configure_traits() # ============= EOF =============================================
# Copyright 2012 Jake Ross # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #=============================================================================== from launchers.helpers import build_version build_version('_experiment') from src.processing.analysis import NonDBAnalysis from src.processing.plotters.plotter_options import PlotterOptions #============= enthought library imports ======================= from traits.api import HasTraits, Instance, Int, Any, Either, Float, Dict, Str from traitsui.api import View, Item, ShellEditor # from pyface.timer.do_later import do_later #============= standard library imports ======================== from sqlalchemy.sql.expression import and_ #============= local library imports ========================== from src.processing.database_manager import DatabaseManager from src.graph.graph_container import HGraphContainer from enable.component_editor import ComponentEditor from src.helpers.filetools import unique_path
Action(name='Test', action='test_script'), Action(name='Save', action='save', enabled_when='object.save_enabled'), Action(name='Save As', action='save_as') ], width=0.5, height=0.65, # height=850, handler=ScriptHandler, title=self.title ) return v if __name__ == '__main__': from launchers.helpers import build_version build_version('_qt') from src.helpers.logger_setup import logging_setup logging_setup('scripts') # s = PyScriptEditor(_kind='ExtractionLine') # s = PyScriptEditor(_kind='Bakeout') s = PyScriptEditor(kind='Measurement') p = os.path.join(paths.scripts_dir, 'extraction', 'jan_diode.py') s.open_script(path=p) s.configure_traits() #============= EOF ============================================= # def _get_execute_label(self): # return 'Stop' if self._executing else 'Execute' # # def _execute_button_fired(self): # if self._executing: