From ae0b71a5e3b53cd1801e743255b4e2bd76eaf396 Mon Sep 17 00:00:00 2001 From: Donavan See Date: Tue, 8 Dec 2020 17:26:18 -0800 Subject: [PATCH] Fixed read file issue Fixed a bug that prevented users from reading in tab delimited files. Now works with both csv files and tab delimited files. Also added tests to ensure bug is fixed. --- crema/__pycache__/parsers.cpython-37.pyc | Bin 2406 -> 2411 bytes crema/parsers.py | 10 ++--- data/single_basic_tab.txt | 11 +++++ tests/test_cli.py | 22 +++++++++ tests/test_crema_methods.py | 55 ++++++++++++++++++++--- 5 files changed, 85 insertions(+), 13 deletions(-) create mode 100644 data/single_basic_tab.txt diff --git a/crema/__pycache__/parsers.cpython-37.pyc b/crema/__pycache__/parsers.cpython-37.pyc index ca3c1c36af1e0ea1c0f10a0ce96daef556f4ba48..335ec113ec02ad710cd635ea9309f2a9e7e565b1 100644 GIT binary patch delta 495 zcmXw0Jx|;~5Z!P44jZ9EkOnCbA;1zO5{a%xBvQJhh{Op?$TGL)Fdsg%UI-{_Q5+={ z#6?=}H}D@)r$`#NNNG~iQ89ajk><^NGrO~z*}tuSt;KcUZz3>f{#VrY5xTSD*(i`T z@S=UaIRCK$N~V#)1FZ2rQ8NY`VrY++EL%REHuwYD8ZWtFH^lHE#^~r( z2aOc5YQ*U9Gf+)$*btTCbjcvNG+R1G>=8}(xN#&lOcF`2m}HV)ky0FObdVNC7&-u@ z;q24H0|q0B+aLHhnfp|W{7momvw+sLNb=A*E?}60A{0s1gJG+0Y!kcHANIDIsx} Ba!vpM delta 497 zcmXv~O=}cE5be+Dp3Q7rqNs?77)cmelS9N?K%)O3;NpS|ldaA&ad&po(<__MgWv`{ z1q|~8%wE0b>VNPe9_AznUOals$?l-l)T{R>ipT5UE5BCOciQb1a<%yJHTfJN^wW#~ z#TU3F=EAyC_~h+v~kM?hGd5y)0L7zj*vM z9Zl77WKum;W)sw4a&(EimpB~oeP(heokz#z!)7q=%Fh`yt2D~K|M9}oGnl#W@{F?qkEOK;(!=>z^$~*a=@n) z2+&hfiNlvYWCANJojYZOV^_9w=3=pn5BMAD#H696D*9qtx*Vgjw(J!S>+fu<6@nUN z