Commit c9569ca6 authored by Yan's avatar Yan
Browse files

Minor fix in graphtools, logging DRL pt1

parent f44697b2
......@@ -80,8 +80,10 @@ def main():
config = cf.settings()
p_logger = logging.getLogger('parseLogger')
drl_logger = logging.getLogger('drlLogger')
graph = Figure(figsize=(5, 4), dpi=100, facecolor="None")
......@@ -11,9 +11,13 @@ import prasopes.datatools as dt
import prasopes.graphtools as gt
import prasopes.filetools as ft
import os.path
import logging
logger = logging.getLogger('drlLogger')
class HBar(QtWidgets.QFrame):
"""horizontal bar class"""
def __init__(self):
......@@ -37,8 +41,9 @@ def floatize(table, row, column):
def update_profile(pt, row, dataset):
"""spectrum updating procedure"""
"""parent table profile spectrum updating procedure"""
# Dont do anything to graph when the spectrum is not populated"updating parent table row {} profile".format(row))
if isinstance(dataset['masses'], type(None)):
......@@ -115,6 +120,8 @@ def get_parentset(ds, drls):
def update_drlspectrum(ds, drls, drlspectrum):
"""Generic DRL spectrum updating procedure""""updating DRL spectrum")
# Dont do anything when the dataset is not populated
if isinstance(ds['masses'], type(None)):
......@@ -76,7 +76,6 @@ def pan_factory(axis, plot=None):
if type(pd) is dict and "annotation" in pd:
ann_spec(ax, pd)
autozoomy(msdata['autoy'], ms_spec, msdata)
fig = axis.get_figure()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment