コード例 #1
0
def enable_calibration_overhaul():
    return advs.get_setting_with_env_overload('enableTipLengthCalibration')
コード例 #2
0
def calibrate_to_bottom():
    return advs.get_setting_with_env_overload('calibrateToBottom')
コード例 #3
0
def enable_door_safety_switch():
    return advs.get_setting_with_env_overload('enableDoorSafetySwitch')
コード例 #4
0
def short_fixed_trash():
    return advs.get_setting_with_env_overload('shortFixedTrash')
コード例 #5
0
def use_protocol_api_v2():
    return not advs.get_setting_with_env_overload('useLegacyInternals')
コード例 #6
0
def use_old_aspiration_functions():
    return advs.get_setting_with_env_overload('useOldAspirationFunctions')
コード例 #7
0
def dots_deck_type():
    return advs.get_setting_with_env_overload('deckCalibrationDots')
コード例 #8
0
def disable_home_on_boot():
    return advs.get_setting_with_env_overload('disableHomeOnBoot')
コード例 #9
0
def test_get_setting_with_env_overload(mock_read_settings_file,
                                       mock_settings_values):
    with patch("os.environ", new={}):
        v = advanced_settings.get_setting_with_env_overload("useProtocolApi2")
        assert v is mock_settings_values['useProtocolApi2']
コード例 #10
0
 def _should_show(setting_dict):
     if not setting_dict['show_if']:
         return True
     return advs.get_setting_with_env_overload(setting_dict['show_if'][0])\
         == setting_dict['show_if'][1]
コード例 #11
0
def enable_http_protocol_sessions():
    return advs.get_setting_with_env_overload('enableHttpProtocolSessions')
コード例 #12
0
ファイル: feature_flags.py プロジェクト: xinampa/opentrons-1
def enable_back_compat():
    return advs.get_setting_with_env_overload('enableApi1BackCompat')
コード例 #13
0
ファイル: feature_flags.py プロジェクト: xinampa/opentrons-1
def use_protocol_api_v2():
    return advs.get_setting_with_env_overload('useProtocolApi2')
コード例 #14
0
def use_fast_api() -> bool:
    return advs.get_setting_with_env_overload('useFastApi')
コード例 #15
0
def use_fast_api() -> bool:
    return not advs.get_setting_with_env_overload('useV1HttpApi')