Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMaggio committed Apr 4, 2024
1 parent 9fd469c commit eb03fff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion api/src/opentrons/config/advanced_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class Setting(NamedTuple):
),
robot_type=[RobotTypeEnum.OT2, RobotTypeEnum.FLEX],
internal_only=True,
)
),
]

if (
Expand Down Expand Up @@ -719,6 +719,7 @@ def _migrate31to32(previous: SettingsMap) -> SettingsMap:
newmap["enableOEMMode"] = None
return newmap


def _migrate32to33(previous: SettingsMap) -> SettingsMap:
"""Migrate to version 33 of the feature flags file.
Expand Down
4 changes: 1 addition & 3 deletions api/src/opentrons/config/feature_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,4 @@ def enable_error_recovery_experiments() -> bool:


def enable_performance_metrics(robot_type: RobotTypeEnum) -> bool:
return advs.get_setting_with_env_overload(
"enablePerformanceMetrics", robot_type
)
return advs.get_setting_with_env_overload("enablePerformanceMetrics", robot_type)
1 change: 1 addition & 0 deletions api/tests/opentrons/config/test_advanced_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def mock_settings_values_flex() -> Dict[str, Optional[bool]]:
if RobotTypeEnum.FLEX in s.robot_type and not s.internal_only
}


@pytest.fixture
def mock_settings_values_flex_all() -> Dict[str, Optional[bool]]:
return {
Expand Down

0 comments on commit eb03fff

Please sign in to comment.