Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr-ressources
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Learning Lab
mooc-rr-ressources
Commits
ecf65b27
Commit
ecf65b27
authored
Aug 24, 2018
by
Arnaud Legrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve portability by using python instead of shell commands
parent
d01c3be2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
article.org
module2/ressources/replicable_article/article.org
+16
-17
No files found.
module2/ressources/replicable_article/article.org
View file @
ecf65b27
...
@@ -52,28 +52,27 @@
...
@@ -52,28 +52,27 @@
reproducible research technology.
reproducible research technology.
#+END_abstract
#+END_abstract
* Getting the LaTeX packages :noexport:
* Getting the LaTeX packages :noexport:
#+begin_src shell :results output :exports both
#+begin_src python :session python :results output :exports both
set -e
import urllib.request
if which wget; then
import os.path
wget --no-check-certificate -O IEEEtran.cls http://mirror.ibcp.fr/pub/CTAN/macros/latex/contrib/IEEEtran/IEEEtran.cls
wget --no-check-certificate -O IEEEtran.bst http://mirrors.ctan.org/macros/latex/contrib/IEEEtran/bibtex/IEEEtran.bst
def download_urls(url_list):
else
for url,filename in url_list:
if which curl; then
if(not(os.path.isfile(filename))):
curl -o IEEEtran.cls http://mirror.ibcp.fr/pub/CTAN/macros/latex/contrib/IEEEtran/IEEEtran.cls
urllib.request.urlretrieve(url, filename)
curl -o IEEEtran.bst http://mirrors.ctan.org/macros/latex/contrib/IEEEtran/bibtex/IEEEtran.bst
else
download_urls([("http://mirrors.ctan.org/macros/latex/contrib/IEEEtran/IEEEtran.cls","IEEEtran.cls"),
echo "Neither wget nor curl was found!!! Get a real OS!" 1>&2
("http://mirrors.ctan.org/macros/latex/contrib/IEEEtran/bibtex/IEEEtran.bst","IEEEtran.bst")])
exit 1
fi
fi
#+end_src
#+end_src
#+RESULTS:
* Getting the data :noexport:
* Getting the data :noexport:
#+begin_src shell :results output raw :exports both
#+begin_src python :session python :results output :exports both
wget --no-check-certificate -O measurements.txt https://raw.githubusercontent.com/alegrand/M2R-ParallelQuicksort/master/data/sama_2014-10-13/measurements_03%3A47.txt
download_urls([("https://raw.githubusercontent.com/alegrand/M2R-ParallelQuicksort/master/data/sama_2014-10-13/measurements_03%3A47.txt","measurements.txt")])
echo 'file:measurements.txt'
#+end_src
#+end_src
#+RESULTS:
* Extracting traces from data files :noexport:
* Extracting traces from data files :noexport:
#+begin_src python :results output raw :exports both :var input="measurements.txt" output="data.csv"
#+begin_src python :results output raw :exports both :var input="measurements.txt" output="data.csv"
...
...
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