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
Holger Niemann
IR_data_access
Commits
28532935
Commit
28532935
authored
Jun 23, 2020
by
David Schwörer
Browse files
ensure get_started() works on all os
parent
5aedc788
Changes
1
Hide whitespace changes
Inline
Side-by-side
downloadversionIRdata.py
View file @
28532935
...
...
@@ -61,11 +61,24 @@ def get_started():
it opens a weblink to a presentation and as well a flow chart
"""
print
(
"Welcome"
)
import
webbrowser
webbrowser
.
open
(
'https://wikis.ipp-hgw.mpg.de/PhysicsW7X/images/9/9f/2019-04-24_20190424_How_to_access_Infrared_Data.pdf'
,
new
=
2
)
link
=
"https://wikis.ipp-hgw.mpg.de/PhysicsW7X/images/9/9f/2019-04-24_20190424_How_to_access_Infrared_Data.pdf"
path
=
str
(
repr
(
__file__
)).
split
(
"downloadversionIRdata"
)[
0
].
split
(
"'"
)[
1
]
os
.
startfile
(
path
+
"IR_data_access_flow_chart.png"
)
image
=
path
+
"IR_data_access_flow_chart.png"
try
:
import
webbrowser
webbrowser
.
open
(
link
,
new
=
2
)
try
:
os
.
startfile
(
image
)
except
AttributeError
:
# Non-windows os:
webbrowser
.
open
(
image
)
except
Exception
:
# When ever that fails, just print the links:
print
(
"Some slides can be found in the wiki:"
)
print
(
link
)
print
(
"And a flow-chart for getting and using the data can be found here:"
)
print
(
image
)
def
get_latest_version
(
stream
,
project
=
"W7X"
,
testmode
=
False
,
t_from
=
None
,
t_to
=
None
,
program
=
None
,
verbose
=
0
):
...
...
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