metaspace2020 / sm-analytics-python

Utilities for working with annotations
Apache License 2.0
0 stars 1 forks source link

cpymspec has no class isotopePattern (or InstrumentModel) #3

Closed andy-d-palmer closed 8 years ago

andy-d-palmer commented 8 years ago

Due to recent changes to cpymspec api??


ImportError Traceback (most recent call last)

in () ----> 1 from sm_annotation_utils import sm_annotation_utils 2 3 config = 'es_MB_config.yml' 4 remote_instance = sm_annotation_utils.SMInstance(config) 5 dataset_name = "MBa2s1" /home/palmer/Documents/python_codebase/engine_annotation_utils/sm_annotation_utils/sm_annotation_utils.py in () 8 import re 9 ---> 10 from cpyMSpec import isotopePattern, InstrumentModel 11 12 ISO_IMG_SEL = """select img.peak, img.pixel_inds, img.intensities, ds.img_bounds ImportError: cannot import name isotopePattern
andy-d-palmer commented 8 years ago

Would it would be better if the general api for access es results didn't require spectral processing libraries?

lomereiter commented 8 years ago

We've agreed earlier not to store isotope patterns in the database or ES index, so it's necessary for image plotting. I moved the import into the method though.