Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jan Zelenka
prasopes
Commits
c9569ca6
Commit
c9569ca6
authored
Nov 15, 2018
by
Yan
Browse files
Minor fix in graphtools, logging DRL pt1
parent
f44697b2
Changes
3
Show whitespace changes
Inline
Side-by-side
prasopes/__main__.py
View file @
c9569ca6
...
...
@@ -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"
)
...
...
prasopes/drltools.py
View file @
c9569ca6
...
...
@@ -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
...
...
prasopes/graphtools.py
View file @
c9569ca6
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment