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
Sebastian Steinlechner
pykat
Commits
8e9f08a4
Commit
8e9f08a4
authored
Jan 09, 2014
by
Andreas Freise
Browse files
adding pykat logo, printed at first import.
parent
4547bf69
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/finesse.py
View file @
8e9f08a4
...
...
@@ -48,6 +48,9 @@ from PyQt4.QtGui import QApplication
NO_GUI
=
False
NO_BLOCK
=
"NO_BLOCK"
pykat_version
=
"0.1"
pykat_web
=
"www.gwoptics.org/pykat"
class
katRun
(
object
):
def
__init__
(
self
):
...
...
@@ -184,16 +187,17 @@ class kat(object):
@
noxaxis
.
setter
def
noxaxis
(
self
,
value
):
self
.
__noxaxis
=
bool
(
value
)
def
logo
(
self
):
@
staticmethod
def
logo
():
print
""" ..-
PyKat
_ '(
PyKat
{0:7}
_ '(
\\
`.|
\\
.__...-
\"\"
""-_." )
..+-----.._ / ' ` .-'
. ' `: 7/* _/._
\\
\\
(
( '::;;+;;: `-"' =" /,`"" `) /
L.
\\
`:::a:f c_/ n_'
..`--...___`. . ,
`^-....____: +.
"""
`^-....____: +.
{1}"""
.
format
(
pykat_version
,
pykat_web
)
def
loadKatFile
(
self
,
katfile
):
commands
=
open
(
katfile
).
read
()
...
...
@@ -351,8 +355,6 @@ class kat(object):
raise
pkex
.
BasePyKatException
(
"pdtype command `{0}` refers to non-existing detector"
.
format
(
text
))
else
:
raise
pkex
.
BasePyKatException
(
"pdtype command `{0}` is incorrect."
.
format
(
text
))
self
.
__currentTag
=
NO_BLOCK
...
...
@@ -806,3 +808,6 @@ class kat(object):
else
:
# otherwise, we will return the 1st group
return
match
.
group
(
1
)
# captured quoted-string
return
regex
.
sub
(
_replacer
,
string
)
# printing pykat logo on first input
kat
.
logo
()
Write
Preview
Markdown
is supported
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