Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IR_data_access
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Schwoerer
IR_data_access
Commits
28532935
Commit
28532935
authored
Jun 23, 2020
by
David Schwörer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure get_started() works on all os
parent
5aedc788
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
downloadversionIRdata.py
downloadversionIRdata.py
+17
-4
No files found.
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
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