This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
from copy import deepcopy | |
def how_many_packs(number_flow_cells, option1): | |
# pack_sizes is nanopore flowcell pack sizes, sorted from high to low | |
pack_sizes = sorted([300, 48, 24, 12, 1], reverse = True) | |
# pack to buy is the largest pack which is less than or equal to the number we need | |
pack_to_buy = [x for x in pack_sizes if x <= number_flow_cells][0] | |
# make a note that we need one of that pack size in the option1 dict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
from concurrent import futures | |
import functools | |
import inspect | |
import threading | |
from grpc import _server | |
def _loop_mgr(loop: asyncio.AbstractEventLoop): |