Skip to content

Instantly share code, notes, and snippets.

View gtortone's full-sized avatar

Gennaro Tortone gtortone

  • INFN Napoli
  • Italy
View GitHub Profile
@gtortone
gtortone / odb-cbtest.py
Created March 10, 2022 08:58
Python ODB watch
#!/usr/bin/env python3
import midas
import midas.frontend
import midas.event
class RunControl(midas.frontend.EquipmentBase):
def __init__(self, client):
@gtortone
gtortone / ECL-fake-ioc.py
Last active June 8, 2017 09:31
fake IOC for ECL endcap temperature / relative humidity data
#!/usr/bin/python2 -B
# temperature between 20 and 30 degC
# rel.humidity between 0 and 10 RH%
import os
import sys
import logging
import random
from threading import Thread, Event, Lock