Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-f-cruz committed Jan 8, 2025
1 parent f581917 commit 2487650
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ def export_model_diagram(model: BaseModel, root: str = "_static") -> None:


_diagram_root = "_static"
#export_model_diagram(MyPydanticBaseModel, _diagram_root)
# export_model_diagram(MyPydanticBaseModel, _diagram_root)
15 changes: 7 additions & 8 deletions examples/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
import os

from aind_behavior_services.session import AindBehaviorSessionModel
from aind_behavior_device_water_tuner.task_logic import AindBehaviorWaterTunerParameters, AindBehaviorWaterTunerTaskLogic
import aind_behavior_device_water_tuner.rig import AindBehaviorWaterTunerRig

from aind_behavior_device_water_tuner.rig import AindBehaviorWaterTunerRig
from aind_behavior_device_water_tuner.task_logic import (
AindBehaviorWaterTunerParameters,
AindBehaviorWaterTunerTaskLogic,
)


def mock_session() -> AindBehaviorSessionModel:
Expand All @@ -23,17 +26,13 @@ def mock_session() -> AindBehaviorSessionModel:


def mock_rig() -> AindBehaviorWaterTunerRig:

return AindBehaviorWaterTunerRig(
rig_name="test_rig",
)


def mock_task_logic() -> AindBehaviorWaterTunerTaskLogic:

return AindBehaviorWaterTunerTaskLogic(
task_parameters=AindBehaviorWaterTunerParameters()
)
return AindBehaviorWaterTunerTaskLogic(task_parameters=AindBehaviorWaterTunerParameters())


def main(path_seed: str = "./local/{schema}.json"):
Expand All @@ -49,4 +48,4 @@ def main(path_seed: str = "./local/{schema}.json"):


if __name__ == "__main__":
main()
main()
2 changes: 1 addition & 1 deletion src/aind_behavior_device_water_tuner/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.0"
__version__ = "0.0.0"
2 changes: 1 addition & 1 deletion src/aind_behavior_device_water_tuner/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ def main():


if __name__ == "__main__":
main()
main()
2 changes: 1 addition & 1 deletion src/aind_behavior_device_water_tuner/regenerate.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ def main():


if __name__ == "__main__":
main()
main()
5 changes: 2 additions & 3 deletions src/aind_behavior_device_water_tuner/rig.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from typing import Literal

from aind_behavior_services.rig import AindBehaviorRigModel
from aind_behavior_services.calibration import aind_manipulator
import aind_behavior_services.rig as rig
from aind_behavior_services.calibration import aind_manipulator
from aind_behavior_services.rig import AindBehaviorRigModel
from pydantic import Field


__version__ = "0.1.0"


Expand Down
2 changes: 1 addition & 1 deletion src/aind_behavior_device_water_tuner/task_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class AindBehaviorWaterTunerParameters(TaskParameters):
title="Repeat count",
)


class AindBehaviorWaterTunerTaskLogic(AindBehaviorTaskLogicModel):
"""WaterTuner operation control model that is used to run a calibration data acquisition workflow"""

name: str = Field(default="WaterValveCalibrationLogic", title="Task name")
version: Literal[__version__] = __version__
task_parameters: AindBehaviorWaterTunerParameters = Field(..., title="Task parameters", validate_default=True)

0 comments on commit 2487650

Please sign in to comment.