Skip to content

Commit b38c80d

Browse files
committed
Updates
1 parent 044ee05 commit b38c80d

File tree

10 files changed

+8
-3
lines changed

10 files changed

+8
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
/Part_1_Resources_for_computational_modellers/Part1.pptx
33
/Part_1_Resources_for_computational_modellers/temp
4+
/Part_1_Resources_for_computational_modellers/4_ICG.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Part_1_Resources_for_computational_modellers/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ and brain regions and species.
4040
[Website](http://crcns.org/)
4141
| [Slides](https://github.com/NeuralEnsemble/NeuroinformaticsTutorial/blob/master/Part_1_Resources_for_computational_modellers/1_Experimental_datasets/3_crcns_org.pptx)
4242

43-
43+
<!-- TODO...
4444
#### HBP Neuroinformatics
4545
46-
...
46+
...-->
4747

4848
#### NeuroMorpho.Org
4949

Part_1_Resources_for_computational_modellers/compile.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import sys
33
from subprocess import call
4+
import platform
45

56
from pdfrw import PdfReader, PdfWriter
67

@@ -27,7 +28,10 @@
2728
fpath = section+'/'+f
2829
if os.path.isfile(fpath) and fpath.endswith('pptx') and not f=='Template.pptx':
2930
print("+ Incorporating: %s"%fpath)
30-
call(["/Applications/LibreOffice.app/Contents/MacOS/soffice", "--headless", "--invisible", "--convert-to", "pdf", fpath])
31+
cmd = "libreoffice"
32+
if platform.system()=='Darwin':
33+
cmd = "/Applications/LibreOffice.app/Contents/MacOS/soffice"
34+
call([cmd, "--headless", "--invisible", "--convert-to", "pdf", fpath])
3135
pdf_file_name = f.replace('pptx','pdf')
3236

3337
pdf_file = PdfReader(pdf_file_name)

0 commit comments

Comments
 (0)