Skip to content

Commit

Permalink
Remove plug test items.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee committed Feb 8, 2024
1 parent 973b16a commit 97ca6e8
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/panoptes/pocs/utils/cli/power.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from dataclasses import dataclass
from pathlib import Path
from typing import Annotated
import pyudev

import numpy as np
import requests
Expand Down Expand Up @@ -152,18 +151,6 @@ def setup_power(
else:
print('[green]Arduino script installed.[/green]')

context = pyudev.Context()
monitor = pyudev.Monitor.from_netlink(context)
monitor.filter_by('block')

def log_event(action, device):
if 'ID_FS_TYPE' in device:
with open('filesystems.log', 'a+') as stream:
print('{0} - {1}'.format(action, device.get('ID_FS_LABEL')), file=stream)

observer = pyudev.MonitorObserver(monitor, log_event)
observer.start()


if __name__ == "__main__":
app()

0 comments on commit 97ca6e8

Please sign in to comment.