Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SPIN
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andrea Mancini
SPIN
Commits
9eb146fe
Commit
9eb146fe
authored
Feb 22, 2026
by
Andrea Mancini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update create_dataset.py
parent
6fc39553
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
create_dataset.py
create_dataset.py
+6
-4
No files found.
create_dataset.py
View file @
9eb146fe
...
@@ -105,19 +105,21 @@ def main(args):
...
@@ -105,19 +105,21 @@ def main(args):
raise
Exception
(
"Either depth or node_list must be provided"
)
raise
Exception
(
"Either depth or node_list must be provided"
)
elif
depth
and
len
(
node_list
)
>
0
:
elif
depth
is
not
None
and
len
(
node_list
)
>
0
:
raise
Exception
(
"Only one between depth and node list is required"
)
raise
Exception
(
"Only one between depth and node list is required"
)
tree
=
Tree
(
args
.
tree
)
tree
=
Tree
(
args
.
tree
)
if
depth
is
not
None
:
if
depthi
is
not
None
:
class2seqs
=
define_classes_at_depth
(
args
.
ifpath
,
tree
,
depth
)
class2seqs
=
define_classes_at_depth
(
args
.
ifpath
,
tree
,
depth
)
elif
len
(
node_list
)
>
0
:
elif
len
(
node_list
)
>
0
:
if
class_ids
and
len
(
class_ids
)
!=
len
(
node_list
):
raise
ValueError
(
"Number of class_ids must match number of nodes"
)
class2seqs
=
define_classes_from_list
(
args
.
ifpath
,
tree
,
node_list
,
args
.
class_ids
)
class2seqs
=
define_classes_from_list
(
args
.
ifpath
,
tree
,
node_list
,
args
.
class_ids
)
save_to_csv
(
class2seqs
,
args
.
ofpath
)
save_to_csv
(
class2seqs
,
args
.
ofpath
)
...
...
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