Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BluePyMM
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BlueBrain
BluePyMM
Commits
ce307a02
Commit
ce307a02
authored
5 years ago
by
arnaudon
Browse files
Options
Downloads
Patches
Plain Diff
pathlib -> os.path
parent
a5e36322
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bluepymm/prepare_combos/parse_files.py
+3
-4
3 additions, 4 deletions
bluepymm/prepare_combos/parse_files.py
with
3 additions
and
4 deletions
bluepymm/prepare_combos/parse_files.py
+
3
−
4
View file @
ce307a02
...
...
@@ -27,6 +27,7 @@ Copyright (c) 2018, EPFL/Blue Brain Project
import
pandas
import
re
import
os
import
lxml
import
lxml.etree
...
...
@@ -98,11 +99,9 @@ def read_mm_recipe(recipe_filename):
Returns:
A pandas.DataFrame with fields
"
layer
"
,
"
fullmtype
"
, and
"
etype
"
.
"""
from
pathlib
import
Path
if
Path
(
recipe_filename
).
suffix
==
'
.xml
'
:
if
os
.
path
.
splitext
(
recipe_filename
)[
1
]
==
'
.xml
'
:
return
read_mm_recipe_xml
(
recipe_filename
)
elif
Path
(
recipe_filename
)
.
suffix
==
'
.yaml
'
:
elif
os
.
path
.
splitext
(
recipe_filename
)
[
1
]
==
'
.yaml
'
:
return
read_mm_recipe_yaml
(
recipe_filename
)
else
:
raise
Exception
(
'
Please provide an .xml or .yaml as recipe file
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment