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')
logging.basicConfig()
p_logger.setLevel("WARN")
drl_logger.setLevel("DEBUG")
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
matplotlib.use("Qt5Agg")
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
logger.info("updating parent table row {} profile".format(row))
if isinstance(dataset['masses'], type(None)):
return
......@@ -115,6 +120,8 @@ def get_parentset(ds, drls):
def update_drlspectrum(ds, drls, drlspectrum):
"""Generic DRL spectrum updating procedure"""
logger.info("updating DRL spectrum")
# Dont do anything when the dataset is not populated
if isinstance(ds['masses'], type(None)):
return
......
......@@ -76,7 +76,6 @@ def pan_factory(axis, plot=None):
fig.canvas.mpl_disconnect(id_release)
if type(pd) is dict and "annotation" in pd:
ann_spec(ax, pd)
autozoomy(msdata['autoy'], ms_spec, msdata)
ax.figure.canvas.draw()
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