コード例 #1
0
ファイル: easy_manager.py プロジェクト: UManPychron/pychron
#
# 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 threading import Thread
import time
from pychron.core.ui import set_toolkit
# from pychron.core.ui.thread import Thread
from pychron.core.ui.thread import Thread
from pychron.easy_parser import EasyParser
from pychron.envisage.icon_button_editor import icon_button_editor

set_toolkit('qt4')

#============= enthought library imports =======================
from traits.api import HasTraits, Str, Int, Button, Instance, Callable, Bool
from traitsui.api import View, UItem, VGroup, HGroup

#============= standard library imports ========================
#============= local library imports  ==========================
from pychron.core.ui.qt.progress_editor import ProgressEditor
from pychron.loggable import Loggable


class Progress(HasTraits):
    value = Int
    max = Int
    message = Str
コード例 #2
0
# 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.
# ===============================================================================

# ============= enthought library imports =======================
# from traits.api import HasTraits
from __future__ import absolute_import
from pychron.core.ui import set_toolkit
set_toolkit('qt4')
# ============= standard library imports ========================
import unittest
import numpy as np
# ============= local library imports  ==========================
from pychron.core.regression.new_york_regressor import NewYorkRegressor, ReedYorkRegressor


class NewYorkRegressionTest(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        # Pearson Data with Weights
        xs = [0, 0.9, 1.8, 2.6, 3.3, 4.4, 5.2, 6.1, 6.5, 7.4]
        ys = [5.9, 5.4, 4.4, 4.6, 3.5, 3.7, 2.8, 2.8, 2.4, 1.5]

        #         xs = [5, 10, 6, 8, 4, 4, 3, 10, 2, 6, 7, 9]
コード例 #3
0
ファイル: table_filter.py プロジェクト: OSUPychron/pychron
# 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 pychron.core.ui import set_toolkit
from pychron.envisage.icon_button_editor import icon_button_editor


set_toolkit("qt4")


# ============= enthought library imports =======================
from traits.api import HasTraits, Button, List, Str, Float, Either, Bool, on_trait_change, Int, Property, Event
from traitsui.api import (
    View,
    Item,
    UItem,
    EnumEditor,
    HGroup,
    ListEditor,
    InstanceEditor,
    VGroup,
    spring,
    VSplit,