Skip to content
GitLab
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
ba099848
Commit
ba099848
authored
Nov 28, 2019
by
Yan
Browse files
Fix for copy/paste for win/Python 3.8
parent
70c0d628
Changes
2
Hide whitespace changes
Inline
Side-by-side
prasopes/__init__.py
View file @
ba099848
...
...
@@ -12,7 +12,7 @@ from . import zcetools
from
.
import
zcetools_help
__version__
=
"0.0.1
5
"
__version__
=
"0.0.1
6
"
__all__
=
[
'config'
,
'datatools'
,
'docks'
,
'drltools'
,
'filetools'
,
...
...
prasopes/imagetools.py
View file @
ba099848
...
...
@@ -16,8 +16,8 @@ def paint_image(mass_spec, spect, fn=None, painttarget=None):
"""generates QImage from mass spectrum"""
configtype
=
"print/{}"
if
isinstance
(
painttarget
,
type
(
QtPrintSupport
.
QPrinter
()))
else
"imggen/{}"
xinch
,
yinch
=
[
float
(
cf
.
settings
().
value
(
configtype
.
format
(
i
)
).
replace
(
","
,
"."
))
for
i
in
(
"xinch"
,
"yinch"
)]
xinch
,
yinch
=
[
float
(
cf
.
settings
().
value
(
configtype
.
format
(
i
)
,
type
=
str
)
\
.
replace
(
","
,
"."
))
for
i
in
(
"xinch"
,
"yinch"
)]
dpi
,
xtics
=
[
int
(
cf
.
settings
().
value
(
configtype
.
format
(
i
)))
for
i
in
(
"dpi"
,
"xtics"
)]
paintfig
=
Figure
(
figsize
=
(
xinch
,
yinch
),
dpi
=
dpi
,
constrained_layout
=
True
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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