Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
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
a806d59d
Commit
a806d59d
authored
Jun 25, 2020
by
Holger Niemann
Browse files
Merge branch 'master' into 'master'
ensure get_started() works on all os See merge request
!50
parents
26600ee8
28532935
Changes
1
Show whitespace changes
Inline
Side-by-side
downloadversionIRdata.py
View file @
a806d59d
...
@@ -61,10 +61,23 @@ def get_started():
...
@@ -61,10 +61,23 @@ def get_started():
it opens a weblink to a presentation and as well a flow chart
it opens a weblink to a presentation and as well a flow chart
"""
"""
print
(
"Welcome"
)
print
(
"Welcome"
)
import
webbrowser
link
=
"https://wikis.ipp-hgw.mpg.de/PhysicsW7X/images/9/9f/2019-04-24_20190424_How_to_access_Infrared_Data.pdf"
webbrowser
.
open
(
'https://wikis.ipp-hgw.mpg.de/PhysicsW7X/images/9/9f/2019-04-24_20190424_How_to_access_Infrared_Data.pdf'
,
new
=
2
)
path
=
str
(
repr
(
__file__
)).
split
(
"downloadversionIRdata"
)[
0
].
split
(
"'"
)[
1
]
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
,
def
get_latest_version
(
stream
,
project
=
"W7X"
,
testmode
=
False
,
t_from
=
None
,
...
...
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