예제 #1
0
파일: pyview.py 프로젝트: jirhiker/pychron
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"

#============= standard library imports ========================
import os
#============= local library imports  ==========================

version_id = '_view'
from helpers import build_version
'''
    set_path=True inserts the pychron source directory into the PYTHONPATH
    necessary if you are launching from commandline or eclipse(?). 
    Use false (default) if your are launching from a standalone bundle. 
'''
DEBUG = False
build_version(version_id, debug=DEBUG)

def main():
    '''
        entry point
    '''

    from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # import application
#    from pychron.applications.pyexperiment import PyExperiment as app
    from pychron.applications.pyview import PyView as app

    # build directories
예제 #2
0
# 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.
#===============================================================================

#============= enthought library imports =======================
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"

#============= standard library imports ========================
#============= local library imports  ==========================

setup_version_id = '_dev'
from helpers import build_version
build_version('', setup_version_id, debug=True)

def main():
    """
        entry point
    """

    from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # import application
    from pychron.applications.pyexperiment import PyExperiment as app
#     from pychron.applications.pyvalve import PyValve as app

    # build directories
예제 #3
0
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"

#============= standard library imports ========================
import os
#============= local library imports  ==========================

setup_version_id = '_diode'
from helpers import build_version
'''
    set_path=True inserts the pychron source directory into the PYTHONPATH
    necessary if you are launching from commandline or eclipse(?). 
    Use false (default) if your are launching from a standalone bundle. 
'''
DEBUG = True
build_version('', setup_version_id, debug=DEBUG)


def main():
    '''
        entry point
    '''

    from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # import application
    #    from pychron.applications.pyexperiment import PyExperiment as app
    from pychron.applications.pydiode import PyDiode as app
예제 #4
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.
# ===============================================================================

# ============= enthought library imports =======================
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"
# ============= standard library imports ========================
# ============= local library imports  ==========================

version_id = '_experiment-2.0.0'
from helpers import build_version
build_version(version_id, debug=True)

# PYC = os.path.join(merc, 'pychron_source.zip')
# sys.path.insert(0, PYC)


def main():
    '''
        entry point
    '''
    #     from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # build directories
    build_directories(paths)
# 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 traits.etsconfig.etsconfig import ETSConfig
ETSConfig.toolkit = 'qt4'

if __name__ == '__main__':

    import os

    from helpers import build_version

    build_version(setup_ver='_uv', debug=True)

    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.managers.remote_hardware_server_manager import RemoteHardwareServerManager

#    from pychron.managers.manager import ManagerHandler
#    class AppHandler(ManagerHandler):
#        def closed(self, info, isok):
#            info.object.kill()
#            info.object.close_displays()
#            return True

    logging_setup('server')
    s = RemoteHardwareServerManager()  # handler_klass=AppHandler)
    s.load()
    s.configure_traits()
예제 #6
0
#===============================================================================

#============= enthought library imports =======================
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"

# import gc
# print gc.get_threshold()
# gc.set_debug(gc.DEBUG_LEAK| gc.DEBUG_STATS)
#============= standard library imports ========================
#============= local library imports  ==========================

source_version_id = ''
setup_version_id = '_dev'
from helpers import build_version
build_version(source_version_id, setup_version_id, debug=True)


def setup():
    """
        entry point
    """

    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # import application
    #    from pychron.applications.pydiode import PyDiode as app
    from pychron.applications.pyexperiment import PyExperiment as app

    # build directories
예제 #7
0
파일: pyview.py 프로젝트: sgallet/pychron
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"

#============= standard library imports ========================
import os
#============= local library imports  ==========================

version_id = '_view'
from helpers import build_version
'''
    set_path=True inserts the pychron source directory into the PYTHONPATH
    necessary if you are launching from commandline or eclipse(?). 
    Use false (default) if your are launching from a standalone bundle. 
'''
DEBUG = False
build_version(version_id, debug=DEBUG)


def main():
    '''
        entry point
    '''

    from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # import application
    #    from pychron.applications.pyexperiment import PyExperiment as app
    from pychron.applications.pyview import PyView as app
예제 #8
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.
# ===============================================================================

# ============= enthought library imports =======================
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"
# ============= standard library imports ========================
# ============= local library imports  ==========================

version_id = '_experiment-2.0.0'
from helpers import build_version
build_version(version_id, debug=True)

# PYC = os.path.join(merc, 'pychron_source.zip')
# sys.path.insert(0, PYC)

def main():
    '''
        entry point
    '''
#     from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # build directories
    build_directories(paths)
예제 #9
0
파일: pydiode.py 프로젝트: sgallet/pychron
# 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.
#===============================================================================

#============= enthought library imports =======================
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"

#============= standard library imports ========================
import os
#============= local library imports  ==========================

from helpers import build_version
build_version(setup_ver='_diode')


def main():
    """
        entry point
    """
    from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # import application
    #    from pychron.applications.pyexperiment import PyExperiment as app
    from pychron.applications.pydiode import PyDiode as app

    # build directories
예제 #10
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 traits.etsconfig.etsconfig import ETSConfig
ETSConfig.toolkit = 'qt4'

if __name__ == '__main__':

    import os

    from helpers import build_version
    build_version('_dev', debug=True)

    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.managers.remote_hardware_server_manager import RemoteHardwareServerManager

#    from pychron.managers.manager import ManagerHandler
#    class AppHandler(ManagerHandler):
#        def closed(self, info, isok):
#            info.object.kill()
#            info.object.close_displays()
#            return True

    logging_setup('server')
    s = RemoteHardwareServerManager()  # handler_klass=AppHandler)
    s.load()
    s.configure_traits()
#
#   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.
#===============================================================================

if __name__ == '__main__':

    import os

    from helpers import build_version
    build_version('_uv', set_path=True)

    from src.helpers.logger_setup import logging_setup
    from src.managers.remote_hardware_server_manager import RemoteHardwareServerManager

#    from src.managers.manager import ManagerHandler
#    class AppHandler(ManagerHandler):
#        def closed(self, info, isok):
#            info.object.kill()
#            info.object.close_displays()
#            return True

    logging_setup('server')
    s = RemoteHardwareServerManager()  # handler_klass=AppHandler)
    s.load()
    s.configure_traits()
예제 #12
0
# 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 traits.etsconfig.etsconfig import ETSConfig

ETSConfig.toolkit = 'qt4'

if __name__ == '__main__':

    import os

    from helpers import build_version

    build_version(setup_ver='_uv', debug=True)

    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.managers.remote_hardware_server_manager import RemoteHardwareServerManager

    #    from pychron.managers.manager import ManagerHandler
    #    class AppHandler(ManagerHandler):
    #        def closed(self, info, isok):
    #            info.object.kill()
    #            info.object.close_displays()
    #            return True

    logging_setup('server')
    s = RemoteHardwareServerManager()  # handler_klass=AppHandler)
    s.load()
    s.configure_traits()
예제 #13
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 traits.etsconfig.etsconfig import ETSConfig

ETSConfig.toolkit = 'qt4'
if __name__ == '__main__':

    import os

    from helpers import build_version

    build_version(setup_ver='_dev')

    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.managers.remote_hardware_server_manager import RemoteHardwareServerManager

    logging_setup('server')
    s = RemoteHardwareServerManager()  # handler_klass=AppHandler)
    s.load()
    s.configure_traits()

    os._exit(0)

#    launch()
# ============= EOF ====================================
#
# def read_configuration():
예제 #14
0
#===============================================================================
# Copyright 2011 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 traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"

if __name__ == '__main__':
    from helpers import build_version
    build_version('_bakeout', set_path=False)

    from src.envisage.bakedpy_run import launch
    from src.helpers.logger_setup import logging_setup

    logging_setup('bakeout', level='DEBUG')
    launch()

# ============= EOF ====================================
예제 #15
0
# 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.
#===============================================================================

version_id = '_test'
from helpers import build_version
build_version(version_id)

#============= enthought library imports =======================
from traits.api import Int, Bool, Event, Property
from traitsui.api import View, Item, ButtonEditor
#============= standard library imports ========================
import SocketServer
import shlex
import socket
from threading import Thread
#============= local library imports  ==========================

cnt = 0
gErrorSet = False

from pychron.loggable import Loggable
예제 #16
0
# 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.
#===============================================================================

#============= enthought library imports =======================
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"

#============= standard library imports ========================
#============= local library imports  ==========================

setup_version_id = '_dev'
from helpers import build_version
build_version('', setup_version_id, debug=True)


def main():
    """
        entry point
    """

    from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # import application
    from pychron.applications.pyexperiment import PyExperiment as app
    #     from pychron.applications.pyvalve import PyValve as app
예제 #17
0
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"

#============= standard library imports ========================
import os
#============= local library imports  ==========================

version_id = ''
from helpers import build_version
'''
    set_path=True inserts the pychron source directory into the PYTHONPATH
    necessary if you are launching from commandline or eclipse(?). 
    Use false (default) if your are launching from a standalone bundle. 
'''
DEBUG = True
build_version(version_id, setup_ver='_view',debug=DEBUG)

def main():
    '''
        entry point
    '''

    from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # import application
#    from pychron.applications.pyexperiment import PyExperiment as app
    from pychron.applications.pydiode import PyDiode as app

    # build directories
예제 #18
0
#   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.
# ===============================================================================

if __name__ == "__main__":

    import os

    from helpers import build_version

    build_version("_experiment")

    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.managers.remote_hardware_server_manager import RemoteHardwareServerManager

    #    from pychron.managers.manager import ManagerHandler
    #    class AppHandler(ManagerHandler):
    #        def closed(self, info, isok):
    #            info.object.kill()
    #            info.object.close_displays()
    #            return True

    logging_setup("server")
    s = RemoteHardwareServerManager()  # handler_klass=AppHandler)
    s.load()
    s.configure_traits()
예제 #19
0
파일: pydiode.py 프로젝트: jirhiker/pychron
# 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.
#===============================================================================

#============= enthought library imports =======================
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"

#============= standard library imports ========================
import os
#============= local library imports  ==========================

from helpers import build_version
build_version(setup_ver='_diode')

def main():
    """
        entry point
    """
    from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # import application
#    from pychron.applications.pyexperiment import PyExperiment as app
    from pychron.applications.pydiode import PyDiode as app


    # build directories
예제 #20
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.
#===============================================================================

#============= enthought library imports =======================
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"
#============= standard library imports ========================
#============= local library imports  ==========================

from helpers import build_version
build_version()


def main():
    """
        entry point
    """
    from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # build directories
    build_directories(paths)

    #    from pychron.core.helpers.paths import hidden_dir
    #    path = os.path.join(hidden_dir, 'version_info')
예제 #21
0
# ===============================================================================

# ============= enthought library imports =======================
import argparse
import getpass
# ============= standard library imports ========================
# ============= local library imports  ==========================

version_id = '_experiment'
from helpers import build_version
'''
    set_path=True inserts the pychron source directory into the PYTHONPATH
    necessary if you are launching from commandline or eclipse(?). 
    Use false (default) if your are launching from a standalone bundle. 
'''
build_version(version_id, set_path=True)

from pychron.envisage.credentials import Credentials

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='Generate a password')
    parser.add_argument('-p', '--password',
                        action='store'
                        )
    args = parser.parse_args()

    pwd = args.password
    cancel = False
    if not pwd:
        pwd1 = ''
        pwd2 = None
예제 #22
0
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"

#============= standard library imports ========================
import os
#============= local library imports  ==========================

setup_version_id = '_diode'
from helpers import build_version
'''
    set_path=True inserts the pychron source directory into the PYTHONPATH
    necessary if you are launching from commandline or eclipse(?). 
    Use false (default) if your are launching from a standalone bundle. 
'''
DEBUG = True
build_version('', setup_version_id, debug=DEBUG)

def main():
    '''
        entry point
    '''

    from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # import application
#    from pychron.applications.pyexperiment import PyExperiment as app
    from pychron.applications.pydiode import PyDiode as app

    # build directories
예제 #23
0
# 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.
#===============================================================================

if __name__ == '__main__':
    from helpers import build_version
    build_version('_bakeout', set_path=True)
    from src.envisage.bakedpy_run import launch
    from src.helpers.logger_setup import logging_setup

    logging_setup('bakeout', level='DEBUG')
    launch()

# ============= EOF ====================================

# #!/usr/bin/python
##===============================================================================
# # Copyright 2011 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
예제 #24
0
#
#   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.
#===============================================================================

if __name__ == '__main__':

    import os

    from helpers import build_version
    build_version('_experiment')

    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.managers.remote_hardware_server_manager import RemoteHardwareServerManager

    #    from pychron.managers.manager import ManagerHandler
    #    class AppHandler(ManagerHandler):
    #        def closed(self, info, isok):
    #            info.object.kill()
    #            info.object.close_displays()
    #            return True

    logging_setup('server')
    s = RemoteHardwareServerManager()  # handler_klass=AppHandler)
    s.load()
    s.configure_traits()
예제 #25
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.
#===============================================================================

#============= enthought library imports =======================
from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = "qt4"
#============= standard library imports ========================
#============= local library imports  ==========================


from helpers import build_version
build_version()


def main():
    """
        entry point
    """
    from pychron.envisage.pychron_run import launch
    from pychron.core.helpers.logger_setup import logging_setup
    from pychron.paths import build_directories, paths

    # build directories
    build_directories(paths)

#    from pychron.core.helpers.paths import hidden_dir
#    path = os.path.join(hidden_dir, 'version_info')
예제 #26
0
#
#   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.
#===============================================================================

if __name__ == '__main__':

    import os

    from helpers import build_version
    build_version('_experiment')

    from src.helpers.logger_setup import logging_setup
    from src.managers.remote_hardware_server_manager import RemoteHardwareServerManager

#    from src.managers.manager import ManagerHandler
#    class AppHandler(ManagerHandler):
#        def closed(self, info, isok):
#            info.object.kill()
#            info.object.close_displays()
#            return True

    logging_setup('server')
    s = RemoteHardwareServerManager()  # handler_klass=AppHandler)
    s.load()
    s.configure_traits()