Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BIDS Handler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Toumji Abdallah
BIDS Handler
Commits
dabfdcaf
Commit
dabfdcaf
authored
1 year ago
by
Toumji Abdallah
Browse files
Options
Downloads
Patches
Plain Diff
Handled xlsx and csv file for the importation of data
parent
1da4264f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
BIDSHandler/CreationTool/FormHandler.py
+10
-1
10 additions, 1 deletion
BIDSHandler/CreationTool/FormHandler.py
BIDSHandler/MainApplication.py
+1
-0
1 addition, 0 deletions
BIDSHandler/MainApplication.py
with
11 additions
and
1 deletion
BIDSHandler/CreationTool/FormHandler.py
+
10
−
1
View file @
dabfdcaf
...
...
@@ -327,7 +327,16 @@ class Form:
:param path: str
The path of the file containing the data.
"""
if
path
.
split
(
'
.
'
)[
-
1
]
==
'
tsv
'
:
self
.
table
.
model
.
df
=
pd
.
read_csv
(
path
,
sep
=
'
\t
'
)
elif
path
.
split
(
'
.
'
)[
-
1
]
==
'
csv
'
:
self
.
table
.
model
.
df
=
pd
.
read_csv
(
path
)
elif
path
.
split
(
'
.
'
)[
-
1
]
==
'
xlsx
'
:
self
.
table
.
model
.
df
=
pd
.
read_excel
(
path
)
else
:
mb
.
showinfo
(
'
Invalid file
'
,
'
The file must be a tsv, csv or xlsx file.
'
)
return
self
.
table
.
redraw
()
self
.
confirmation_button
.
grid_forget
()
self
.
validation_label
.
grid_forget
()
...
...
This diff is collapsed.
Click to expand it.
BIDSHandler/MainApplication.py
+
1
−
0
View file @
dabfdcaf
...
...
@@ -27,6 +27,7 @@ class Application(tk.Frame):
"""
The constructor of the class, it instantiates the main window of the application.
"""
tk
.
Frame
.
__init__
(
self
,
root
)
root
.
title
(
'
BIDS Handler
'
)
self
.
root
=
root
self
.
create_widgets
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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