Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import os
- #os.sys.path.append("/storage/emulated/0/programming/BioPlate")
- #sys.path.append("/storage/emulated/0/programming/BioPlate")
- #print(sys.path)
- import numpy as np
- import xlsxwriter
- import re
- from pyexcel_xlsx import get_data, save_data
- import openpyxl
- from BioPlate import BioPlate
- from BioPlate.writer.to_excel import BioPlateToExcel
- from BioPlate.writer.from_excel import BioPlateFromExcel
- #from BioPlate.utilitis import dimension, dict_unique, remove_empty_iterate, like_read_count, nested_dict_to_list, _LETTER
- from BioPlate.array import BioPlateArray
- #from BioPlate.Plate import BioPlate
- from BioPlate.matrix import BioPlateMatrix
- from BioPlate.manipulation import BioPlateManipulation
- from BioPlate.iterate import BioPlateIterate
- from BioPlate.count import BioPlateCount
- from BioPlate.database.plate_historic_db import PlateHist
- from BioPlate.stack import BioPlateStack
- from timeit import timeit
- import time
- import inspect
- from string import ascii_uppercase
- from collections import namedtuple
- #cd /storage/emulated/0/programming/BioPlate/BioPlate && mypy --ignore-missing-import array.py
- #cd /storage/emulated/0/programming/BioPlate && mypy --ignore-missing-import -p BioPlate
- #cd /storage/emulated/0/programming/BioPlate && py.test --cov=BioPlate tests/&& coverage html
- # cd /storage/emulated/0/programming/BioPlate/ && pylint BioPlate && pylint-json2html -f jsonextended -o pylint_report.html
- # cd /storage/emulated/0/programming/BioPlate/build_docs && make html
- v = {
- "A[2,8]": "VC",
- "H[2,8]": "MS",
- "1-4[B,G]": ["MLR", "NT", "1.1", "1.2"],
- "E-G[8,11]": ["Val1", "Val2", "Val3"],
- }
- plate = BioPlate(12, 8)
- #stack = BioPlate(2, 12, 8)
- Ins = BioPlate(12,8,inserts=True)
- #plate.set('A-C[1-5]', ["Test1", "Test2", "Test3"])
- #plate.set("6-8[A-B]", ["Bob1", "bob2", "bob3"])
- #plate.set("A[1-3]", ["_mo1", "_mo2", "_mo3"], merge=True)
- #plate.set({"H[2-4]" : "tutu", "2H" :"_roulio"}, merge = True)
- #stack.set(0, {"H[2-4]" : "tutu", "2H" :"_roulio"}, merge = True)
- #plate.set("B", "BG")
- #plate.get("B2", "G3")
- #print(stack.get(0, "H2"))
- #Ins.top.set("B", "mam")
- #print(BioPlateMatrix("A-C[4-5]"))
- #print(Ins.top["A-C[4-5]"])
- #Ins.top.set("A-C[4-5]", ["_3", "_4", "_5"], merge=True)
- #plate.set("B5", ["martin", "maurice"])
- #print(BioPlateMatrix({"H[2-4]" : "tutu", "11[E-F]" :"roulio"}))
- #plate.set("A[2-4]", ["test23", "test43"])
- #plate.set("2-3[B-C]", "gogo")
- #print(plate["H[2-4]"])
- #plate["B-E[4-7]"] = ["master", "bob", "u", "m",]
- #plate["4-6[B-D]"] = ["lol", "lo", "l"]
- #stack[0, "B[2-6]"] = "test"
- #Ins["top", "E[4-6]"] = "bibi"
- #Ins.top["B3"] = 12
- #plate["A-B[2-5]"] = "mama" #, "papa"]
- #print(stack)
- #print(stack[0, "B6"])
- #print(stack)
- #print(plate)
- #print(Ins[0, 1:4])
- #print(Ins)
- #print(Ins["top", "E4"])
- #print(plate.set("2[B,E]", "Test"))
- #ins["bot", "B-D[6-9]"] = ["t1", "t2", "t3"]
- print(list(BioPlateIterate(Ins, OnlyValue=True)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement