Skip to content

Commit

Permalink
[UPDATE] Source Code
Browse files Browse the repository at this point in the history
  • Loading branch information
FMCalisto committed Apr 6, 2020
1 parent 11af938 commit 204b5f0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 22 deletions.
20 changes: 3 additions & 17 deletions scripts/reader.sh
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
32 changes: 27 additions & 5 deletions src/demo.py
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 ==================== #

0 comments on commit 204b5f0

Please sign in to comment.