Skip to content
Snippets Groups Projects
Commit 3522485d authored by Alán Muñoz's avatar Alán Muñoz
Browse files

clean(test_ext): Remove deprecated tests

parent 8b0ec2fc
No related branches found
No related tags found
No related merge requests found
# Example of argo experiment explorer
from aliby.utils.argo import Argo
from extraction.core.extractor import Extractor
from extraction.core.functions.defaults import get_params
from extraction.core.parameters import Parameters
argo = Argo()
argo.load()
# argo.channels("GFP")
argo.tags(["Alan"])
argo.complete()
# argo.cExperiment()
# argo.tiler_cells()
# params = Parameters(**get_params("batman_ph_dual_fast"))
# def try_extract(d):
# try:
# params = Parameters(**get_params("batman_ph_dual_fast"))
# ext = Extractor(params, source=d.getId())
# ext.load_tiler_cells()
# ext.process_experiment()
# print(d.getId(), d.getName(), "Experiment processed")
# return True
# except:
# print(d.getId(), d.getName(), "Experiment not processed")
# return False
# from multiprocessing.dummy import Pool as ThreadPool
# pool = ThreadPool(4)
# results = pool.map(try_extract, argo.dsets)
# import pickle
# with open("results.pkl", "wb") as f:
# pickle.dump(results, f)
from pathlib import Path
import numpy as np
from extraction.core.extractor import Extractor
from extraction.core.functions.defaults import get_params
from extraction.core.parameters import Parameters
params = Parameters(**get_params("batman_ph_dual_fast"))
# ext = Extractor(params, source=19918) # 19831
ext = Extractor(params, source=19831)
ext.load_tiler()
self = ext
# s=self.extract_exp(tree={'general':{None:['area']}, 'GFPFast':{np.maximum:['median','mean']}},poses=self.expt.positions[:2], tps=[0,1], stg='df')
s = self.extract_exp()
# # import cProfile
# # profile = cProfile.Profile()
# # profile.enable()
# # ext.change_position(ext.expt.positions[1])
# # tracks = self.extract_pos(
# # tree={('general'):{None: # Other metrics can be used
# # [tidy_metric]}})#['general',None,'area']
# # profile.disable()
# # import pstats
# # ps = pstats.Stats(profile)
# # ps.sort_stats('cumulative')
# # ps.print_stats()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment