Skip to content

Commit

Permalink
Merge pull request #19 from viam-labs/side
Browse files Browse the repository at this point in the history
Side
  • Loading branch information
kharijarrett authored Jul 11, 2024
2 parents 3a2ab1d + 8ef918b commit 227d8da
Show file tree
Hide file tree
Showing 10 changed files with 148 additions and 421 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ test:

dist/archive.tar.gz:
tar -czvf dist/archive.tar.gz dist/main

lint:
pylint --disable=C0114,E0401,C0116,W0613,R0913,C0116,R0914,C0103,W0201,W0719 src/

12 changes: 0 additions & 12 deletions run.sh

This file was deleted.

40 changes: 0 additions & 40 deletions setup.sh

This file was deleted.

6 changes: 5 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ async def main():
Registry.register_resource_creator(
Vision.SUBTYPE,
MotionDetector.MODEL,
ResourceCreatorRegistration(MotionDetector.new_service, MotionDetector.validate_config))
ResourceCreatorRegistration(
MotionDetector.new_service, MotionDetector.validate_config
),
)
module = Module.from_args()

module.add_model_from_registry(Vision.SUBTYPE, MotionDetector.MODEL)
await module.start()


if __name__ == "__main__":
asyncio.run(main())
Loading

0 comments on commit 227d8da

Please sign in to comment.