pioreactor
pioreactor copied to clipboard
turn callback helpers in ODReader to decorators
Current:
from pioreactor.background_jobs.od_reading import ODReader
# example of using callbacks to OD reading...
def hello(self):
print(f"Hello, {self}!")
def goodbye(self, readings):
print(f"Goodbye, {self}, witnessed {readings}!")
ODReader.add_pre_read_callback(hello)
ODReader.add_post_read_callback(goodbye)
Desired:
from pioreactor.background_jobs.od_reading import ODReader
# example of using callbacks to OD reading...
@ODReader.add_pre_read_callback
def hello(self):
print(f"Hello, {self}!")
@ODReader.add_post_read_callback
def goodbye(self, readings):
print(f"Goodbye, {self}, witnessed {readings}!")
Hello,
Are these issues available for public to contribute?
Thanks
Hi @varuntumbe,
Sure! Here are some docs on getting your local development working. (Those docs may need some tweaks, let me know).
I work on the develop branch, so you can push PRs to that branch.
That's great to hear! I was looking for some challenging open source project to contribute. I will first try to install repo locally and will go forward from there.
Thanks