generated from MIMBCD-UI/repo-template-datasets
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,6 @@ | ||
#!/bin/bash | ||
# Purpose: Read Comma Separated CSV File | ||
# Purpose: Run Python | ||
# Author: Francisco Maria Calisto | ||
# ------------------------------------------ | ||
cd dataset | ||
INPUT=overview.csv | ||
OLDIFS=$IFS | ||
IFS=',' | ||
[ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 100; } | ||
while read Age Contrast ContrastTag raw_input_path id tiff_name dicom_name | ||
do | ||
echo "Age : $Age" | ||
echo "Contrast : $Contrast" | ||
echo "ContrastTag : $ContrastTag" | ||
echo "raw_input_path : $raw_input_path" | ||
echo "id : $id" | ||
echo "tiff_name : $tiff_name" | ||
echo "dicom_name : $dicom_name" | ||
done < $INPUT | ||
IFS=$OLDIFS | ||
|
||
python3 src/demo.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
import csv | ||
with open('dataset/overview.csv', 'r') as file: | ||
reader = csv.reader(file) | ||
for row in reader: | ||
print(row) | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
"""demo.py: a small and simple demo for this dataset.""" | ||
|
||
__author__ = "Francisco Maria Calisto" | ||
__maintainer__ = "Francisco Maria Calisto" | ||
__email__ = "francisco.calisto@tecnico.ulisboa.pt" | ||
__license__ = "AGPLv3 & CC-BY-SA-4.0" | ||
__version__ = "0.1.0" | ||
__status__ = "Production" | ||
__copyright__ = "Copyright 2020, Instituto Superior Técnico (IST)" | ||
__credits__ = [ | ||
"Hugo Lencastre", | ||
"Nádia Mourão", | ||
"Bruno Dias", | ||
"Luís Ribeiro Gomes", | ||
"Bruno Oliveira", | ||
"Carlos Santiago", | ||
"Jacinto C. Nascimento", | ||
"Pedro Miraldo", | ||
"Nuno Nunes" | ||
] | ||
|
||
import pydicom | ||
|
||
# ==================== END File ==================== # |