Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 2 -> 3: Open the csv files in text (and not binary) mode #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion carpetCleaning/vacuum_dbscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
from itertools import izip
import numpy as np

with open(folder+dbscan_regressors, 'rb') as csvfile:
with open(folder+dbscan_regressors, 'r') as csvfile:
spamreader = csv.reader(csvfile, delimiter=',')
# row_count = sum(1 for row_dummy in spamreader)
total = []
Expand Down
4 changes: 2 additions & 2 deletions carpetReport/plotDBthreads.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def main(raw_args=None):
import matplotlib.pyplot as plt
from matplotlib import gridspec

with open(regressors, 'rb') as csvfile:
with open(regressors, 'r') as csvfile:
spamreader = csv.reader(csvfile, delimiter=',')
# row_count = sum(1 for row_dummy in spamreader)
total = []
Expand All @@ -63,7 +63,7 @@ def main(raw_args=None):


confound_num = 0
with open(confounds,'rb') as tsvin:
with open(confounds,'r') as tsvin:
tsvin = csv.reader(tsvin, delimiter='\t')
total_confounds = []
# counter =
Expand Down