diff --git a/data/exampleDataGamryABORT.DTA b/data/exampleDataGamryABORT.DTA
new file mode 100644
index 0000000..98adc45
--- /dev/null
+++ b/data/exampleDataGamryABORT.DTA
@@ -0,0 +1,303 @@
+EXPLAIN
+TAG	EISPOT
+TITLE	LABEL	Potentiostatic EIS	Test &Identifier
+DATE	LABEL	3/18/2020	Date
+TIME	LABEL	16:54:44	Time
+NOTES	NOTES	1	&Notes...
+	
+PSTAT	PSTAT	REF600P-36072	Potentiostat
+VDC	POTEN	0.00000E+000	F	DC &Voltage (V)
+FREQINIT	QUANT	5.00000E+006	Initial Fre&q. (Hz)
+FREQFINAL	QUANT	1.00000E-003	Final Fre&q. (Hz)
+PTSPERDEC	QUANT	1.00000E+001	Points/&decade
+VAC	QUANT	2.50000E+001	AC &Voltage (mV rms)
+AREA	QUANT	1.00000E+000	&Area (cm^2)
+CONDIT	TWOPARAM	F	1.50000E+001	0.00000E+000	Conditionin&g	Time(s)	E(V)
+DELAY	TWOPARAM	T	1.00000E+001	0.00000E+000	Init. De&lay	Time(s)	Stab.(mV/s)
+SPEED	SELECTOR	1	&Optimize for:
+ZGUESS	QUANT	1.00000E+002	E&stimated Z (ohms)
+OCVCURVE	TABLE	39
+	Pt	T	Vf	Vm	Ach	Over	Temp
+	#	s	V vs. Ref.	V	V	bits	deg C
+	0	0.258333	5.91639E-002	5.91639E-002	1.08054E-003	..........a	-327.63
+	1	0.516667	5.91640E-002	5.91679E-002	1.07974E-003	..........a	-327.63
+	2	0.775	5.91644E-002	5.91673E-002	1.08048E-003	..........a	-327.63
+	3	1.03333	5.91652E-002	5.91661E-002	1.08248E-003	..........a	-327.63
+	4	1.29167	5.91661E-002	5.91697E-002	1.08208E-003	..........a	-327.63
+	5	1.55	5.91670E-002	5.91756E-002	1.07908E-003	..........a	-327.63
+	6	1.80833	5.91684E-002	5.91742E-002	1.08168E-003	..........a	-327.63
+	7	2.06667	5.91704E-002	5.91755E-002	1.08208E-003	..........a	-327.63
+	8	2.325	5.91726E-002	5.91777E-002	1.07748E-003	..........a	-327.63
+	9	2.58333	5.91744E-002	5.91794E-002	1.07854E-003	..........a	-327.63
+	10	2.84167	5.91760E-002	5.91813E-002	1.07474E-003	..........a	-327.63
+	11	3.1	5.91775E-002	5.91792E-002	1.07688E-003	..........a	-327.63
+	12	3.35833	5.91789E-002	5.91824E-002	1.08088E-003	..........a	-327.63
+	13	3.61667	5.91800E-002	5.91841E-002	1.08381E-003	..........a	-327.63
+	14	3.875	5.91810E-002	5.91841E-002	1.07728E-003	..........a	-327.63
+	15	4.13333	5.91821E-002	5.91859E-002	1.08388E-003	..........a	-327.63
+	16	4.39167	5.91833E-002	5.91867E-002	1.07701E-003	..........a	-327.63
+	17	4.65	5.91845E-002	5.91896E-002	1.07994E-003	..........a	-327.63
+	18	4.90833	5.91858E-002	5.91894E-002	1.07928E-003	..........a	-327.63
+	19	5.16667	5.91872E-002	5.91932E-002	1.08334E-003	..........a	-327.63
+	20	5.425	5.91887E-002	5.91934E-002	1.08048E-003	..........a	-327.63
+	21	5.68333	5.91903E-002	5.91938E-002	1.08054E-003	..........a	-327.63
+	22	5.94167	5.91918E-002	5.91945E-002	1.07808E-003	..........a	-327.63
+	23	6.2	5.91930E-002	5.91965E-002	1.08361E-003	..........a	-327.63
+	24	6.45833	5.91940E-002	5.91970E-002	1.08314E-003	..........a	-327.63
+	25	6.71667	5.91950E-002	5.91993E-002	1.08274E-003	..........a	-327.63
+	26	6.975	5.91961E-002	5.91994E-002	1.07914E-003	..........a	-327.63
+	27	7.23333	5.91973E-002	5.92007E-002	1.08028E-003	..........a	-327.63
+	28	7.49167	5.91985E-002	5.92026E-002	1.07794E-003	..........a	-327.63
+	29	7.75	5.91997E-002	5.92033E-002	1.08294E-003	..........a	-327.63
+	30	8.00833	5.92009E-002	5.92050E-002	1.08341E-003	..........a	-327.63
+	31	8.26667	5.92021E-002	5.92041E-002	1.08448E-003	..........a	-327.63
+	32	8.525	5.92032E-002	5.92085E-002	1.08508E-003	..........a	-327.63
+	33	8.78333	5.92045E-002	5.92127E-002	1.08168E-003	..........a	-327.63
+	34	9.04167	5.92061E-002	5.92119E-002	1.08381E-003	..........a	-327.63
+	35	9.3	5.92083E-002	5.92144E-002	1.08268E-003	..........a	-327.63
+	36	9.5583	5.92105E-002	5.92158E-002	1.08568E-003	..........a	-327.63
+	37	9.8167	5.92125E-002	5.92176E-002	1.08694E-003	..........a	-327.63
+	38	10.075	5.92141E-002	5.92174E-002	1.08134E-003	..........a	-327.63
+EOC	QUANT	0.0592141	Open Circuit (V)
+PSTATMODEL	IQUANT	7	Pstat Model
+PSTATSECTION	LABEL	REF600P-36072	Pstat Section
+PSTATSERIALNO	LABEL	36072	Pstat Serial Number
+CTRLMODE	IQUANT	1	Control Mode
+ELECTROMETER	IQUANT	0	RE=0 or CS=1
+IESTAB	IQUANT	0	I/E Stability
+CASPEED	IQUANT	3	Control Amp Speed
+CONVENTION	IQUANT	1	Current Convention
+ICHRANGE	IQUANT	2	Ich Range
+ICHRANGEMODE	TOGGLE	F	Ich Auto Range
+ICHOFFSETENABLE	TOGGLE	T	Ich Offset Enable
+ICHOFFSET	QUANT	0	Ich Offset (V)
+ICHFILTER	IQUANT	3	Ich Filter
+VCHRANGE	IQUANT	2	Vch Range
+VCHRANGEMODE	TOGGLE	F	Vch Auto Range
+VCHOFFSETENABLE	TOGGLE	T	Vch Offset Enable
+VCHOFFSET	QUANT	0	Vch Offset (V)
+VCHFILTER	IQUANT	3	Vch Filter
+ACHRANGE	IQUANT	2	Ach Range
+ACHOFFSETENABLE	TOGGLE	F	Ach Offset Enable
+ACHOFFSET	QUANT	0	Ach Offset (V)
+ACHFILTER	IQUANT	1	Ach Filter
+IERANGELOWERLIMIT	IQUANT	1	I/E Range Lower Limit
+IERANGEMODE	TOGGLE	F	I/E AutoRange
+IERANGE	IQUANT	1	I/E Range
+POSFEEDENABLE	TOGGLE	F	Positive Feedback IR Comp
+POSFEEDRESISTANCE	QUANT	0	Positive Feedback Resistance (ohm)
+ACHSELECT	IQUANT	0	Ach Select
+SENSECABLEID	IQUANT	7	Sense Cable ID
+PWRCABLEID	IQUANT	7	Power Cable ID
+DCCALDATE	LABEL	3/9/2020	DC Calibration Date
+ACCALDATE	LABEL	3/9/2020	AC Calibration Date
+THERMOSELECT	IQUANT	1	Thermo Select
+FRAMEWORKVERSION	LABEL	7.8.2	Framework Version
+INSTRUMENTVERSION	LABEL	4.40	Instrument Version
+ZCURVE	TABLE
+	Pt	Time	Freq	Zreal	Zimag	Zsig	Zmod	Zphz	Idc	Vdc	IERange
+	#	s	Hz	ohm	ohm	V	ohm	�	A	V	##
+	0	1	200015.6	825.8584	-1367.239	1	1597.306	-58.86662	-5.89286E-006	-0.3413299	9
+	1	3	158953.1	1100.361	-1502.195	1	1862.091	-53.77713	-3.687873E-006	-0.3415995	9
+	2	5	126234.4	1401.721	-1621.813	1	2143.618	-49.16337	-3.64071E-006	-0.3411014	8
+	3	7	100265.6	1739.625	-1672.93	1	2413.502	-43.88036	-3.393947E-006	-0.3410123	8
+	4	8	79640.63	2087.403	-1668.395	1	2672.226	-38.63424	-3.259263E-006	-0.3411529	8
+	5	9	63328.12	2422.298	-1620.144	1	2914.171	-33.77643	-3.164519E-006	-0.3410966	8
+	6	11	50296.88	2720.257	-1506.859	1	3109.73	-28.98382	-3.039019E-006	-0.3409874	8
+	7	12	39984.37	2982.016	-1407.856	1	3297.647	-25.27271	-3.081205E-006	-0.3410543	7
+	8	13	31734.38	3212.336	-1266.296	1	3452.913	-21.51425	-3.00647E-006	-0.3410061	7
+	9	15	25265.63	3359.629	-1091.802	1	3532.582	-18.00297	-2.967855E-006	-0.3409618	7
+	10	16	20015.62	3499.298	-947.1432	1	3625.213	-15.14517	-2.919049E-006	-0.340946	7
+	11	17	15890.62	3598.306	-813.0331	1	3689.015	-12.73212	-2.878246E-006	-0.3410424	7
+	12	19	12703.13	3688.117	-704.9116	1	3754.878	-10.82047	-2.8371E-006	-0.340946	7
+	13	20	10078.13	3766.628	-606.206	1	3815.098	-9.142855	-2.798412E-006	-0.3410886	7
+	14	21	8015.625	3808.92	-516.6904	1	3843.805	-7.725174	-2.777188E-006	-0.3409559	7
+	15	23	6328.125	3842.264	-439.2898	1	3867.295	-6.522361	-2.760411E-006	-0.34098	7
+	16	24	5009.191	3902.565	-382.0586	1	3921.222	-5.591402	-2.715696E-006	-0.3410817	7
+	17	25	3998.162	3927.298	-327.8677	1	3940.96	-4.772231	-2.69764E-006	-0.3409519	7
+	18	27	3170.956	3944.01	-279.8773	1	3953.928	-4.059054	-2.684955E-006	-0.3409741	7
+	19	28	2527.573	3987.966	-247.0336	1	3995.61	-3.544644	-2.656999E-006	-0.3410974	7
+	20	29	2015.625	3998.507	-214.7129	1	4004.268	-3.073732	-2.642501E-006	-0.3411082	7
+	21	31	1577.524	4029.045	-187.785	1	4033.419	-2.6685	-2.616042E-006	-0.3410849	7
+	22	32	1265.625	4044.939	-163.6504	1	4048.248	-2.316812	-2.59937E-006	-0.3409813	7
+	23	33	998.264	4077.349	-146.0875	1	4079.965	-2.051975	-2.586773E-006	-0.3411021	7
+	24	35	796.875	4068.979	-128.724	1	4071.014	-1.811974	-2.578206E-006	-0.3410989	7
+	25	36	627.7902	4072.986	-114.1715	1	4074.586	-1.60566	-2.575558E-006	-0.340972	7
+	26	37	505.5147	4078.837	-105.0351	1	4080.189	-1.475111	-2.561703E-006	-0.3410137	7
+	27	39	397.9953	4107.241	-95.6213	1	4108.354	-1.33367	-2.540645E-006	-0.3410159	7
+	28	40	315.5048	4130.96	-88.8763	1	4131.916	-1.23251	-2.530964E-006	-0.3410132	7
+	29	41	252.4038	4143.088	-82.36904	1	4143.907	-1.138952	-2.519474E-006	-0.3410137	7
+	30	43	198.6229	4164.664	-77.56557	1	4165.386	-1.066993	-2.505077E-006	-0.3410156	7
+	31	44	158.3615	4183.986	-73.49171	1	4184.631	-1.006297	-2.495141E-006	-0.3410127	7
+	32	45	125.558	4206.823	-70.95162	1	4207.421	-0.96625	-2.488844E-006	-0.3410158	7
+	33	47	100.4464	4225.685	-68.13791	1	4226.234	-0.9237974	-2.477703E-006	-0.3410141	7
+	34	48	79.90057	4230.309	-69.87909	1	4230.886	-0.9463642	-2.475725E-006	-0.3410142	7
+	35	49	63.3446	4228.707	-68.70265	1	4229.265	-0.930787	-2.473252E-006	-0.3410121	7
+	36	51	49.86702	4242.562	-73.79854	1	4243.204	-0.996548	-2.458491E-006	-0.3410124	7
+	37	52	39.72458	4250.716	-78.35508	1	4251.438	-1.056035	-2.448621E-006	-0.3410158	7
+	38	53	31.6723	4219.722	-81.94554	1	4220.517	-1.112525	-2.450807E-006	-0.3410114	7
+	39	55	24.93351	4208.409	-94.86475	1	4209.478	-1.291327	-2.461956E-006	-0.3410117	7
+	40	56	19.86229	4203.486	-104.9407	1	4204.795	-1.430102	-2.516145E-006	-0.3411886	7
+	41	57	15.83615	4213.595	-122.1189	1	4215.364	-1.660088	-2.537071E-006	-0.3411863	7
+	42	59	12.40079	4241.487	-142.8908	1	4243.894	-1.929499	-2.53302E-006	-0.3411894	7
+	43	60	9.93114	4258.891	-164.5738	1	4262.07	-2.212945	-2.527695E-006	-0.3411901	7
+	44	61	7.944915	4295.819	-195.5508	1	4300.268	-2.606373	-2.51719E-006	-0.3411826	7
+	45	63	6.317385	4297.472	-228.205	1	4303.527	-3.039673	-2.518544E-006	-0.3411832	7
+	46	65	5.008013	4313.771	-275.2808	1	4322.546	-3.651345	-2.516387E-006	-0.3411848	7
+	47	67	4.020154	4361.165	-321.6813	1	4373.013	-4.218521	-2.499301E-006	-0.3411853	7
+	48	69	3.158693	4408.525	-387.5287	1	4425.525	-5.023638	-2.494316E-006	-0.3411854	7
+	49	72	2.504006	4430.184	-470.5144	1	4455.1	-6.062459	-2.48491E-006	-0.3411898	7
+	50	75	1.998082	4495.299	-558.4168	1	4529.85	-7.081144	-2.479271E-006	-0.3411921	7
+	51	79	1.584686	4571.314	-655.9384	1	4618.135	-8.165641	-2.467729E-006	-0.3411921	7
+	52	83	1.266892	4632.138	-773.8778	1	4696.337	-9.484644	-2.461648E-006	-0.341189	7
+	53	88	0.999041	4753.051	-913.8754	1	4840.11	-10.88352	-2.443854E-006	-0.3411925	7
+	54	94	0.7923428	4889.047	-1069.582	1	5004.676	-12.34024	-2.43927E-006	-0.341192	7
+	55	100	0.633446	5038.293	-1243.894	1	5189.574	-13.8683	-2.420312E-006	-0.3411922	7
+	56	108	0.5040323	5218.515	-1440.5	1	5413.681	-15.43144	-2.409594E-006	-0.341192	7
+	57	117	0.400641	5444.164	-1644.846	1	5687.217	-16.81115	-2.397996E-006	-0.3411914	7
+	58	128	0.3188775	5926.305	-1891.697	1	6220.901	-17.70326	-2.339145E-006	-0.3411929	7
+	59	141	0.2520161	6461.792	-2170.397	1	6816.551	-18.56626	-2.310867E-006	-0.3411875	7
+	60	158	0.2003205	7343.626	-2427.713	1	7734.509	-18.29325	-2.233252E-006	-0.341192	7
+	61	179	0.1588983	7986.202	-2737.648	1	8442.401	-18.92157	-2.248443E-006	-0.3411916	7
+	62	204	0.1263477	8435.127	-3059.258	1	8972.76	-19.93473	-2.262905E-006	-0.3411871	7
+	63	234	0.1003747	8973.929	-3423.424	1	9604.75	-20.88113	-2.275218E-006	-0.3411847	7
+	64	270	0.0797194	10123.93	-3800.406	1	10813.75	-20.57555	-2.220052E-006	-0.3411861	7
+	65	308	0.0632591	10823.63	-4165.968	1	11597.68	-21.0515	-2.224564E-006	-0.3411882	7
+	66	357	0.0502412	11628.01	-4477.789	1	12460.38	-21.06103	-2.219482E-006	-0.34119	7
+	67	418	0.0399276	12514.52	-4931.03	1	13450.96	-21.50567	-2.219679E-006	-0.3411894	7
+	68	494	0.0317152	13482.75	-5301.367	1	14487.55	-21.46456	-2.214189E-006	-0.3411872	7
+	69	590	0.0251881	14713.85	-5703.416	1	15780.57	-21.18744	-2.215432E-006	-0.3411895	7
+	70	710	0.0200064	15701.81	-6161.72	1	16867.53	-21.42609	-2.226001E-006	-0.3411875	7
+	71	861	0.0158898	17007.49	-6635.557	1	18256.1	-21.31349	-2.233894E-006	-0.3411888	7
+EXPERIMENTABORTED	TOGGLE	T	Experiment Aborted
+FRACURVE	TABLE	128
+	Pt	T	V	I	OlCtrl	Overload
+	#	S	V	A	bits	bits
+	0	2.01455E+001	2.97650E-004	6.72654E-008	......	...........
+	1	2.03017E+001	2.03762E-003	6.98193E-008	......	...........
+	2	2.04578E+001	3.76564E-003	7.21600E-008	......	...........
+	3	2.06140E+001	5.48794E-003	7.43426E-008	......	...........
+	4	2.07702E+001	7.19534E-003	7.62414E-008	......	...........
+	5	2.09263E+001	8.88496E-003	7.79948E-008	......	...........
+	6	2.10825E+001	1.05493E-002	7.95053E-008	......	...........
+	7	2.12387E+001	1.21942E-002	8.08452E-008	......	...........
+	8	2.13948E+001	1.38085E-002	8.19303E-008	......	...........
+	9	2.15510E+001	1.53875E-002	8.28533E-008	......	...........
+	10	2.17072E+001	1.69285E-002	8.35174E-008	......	...........
+	11	2.18633E+001	1.84307E-002	8.40189E-008	......	...........
+	12	2.20195E+001	1.98960E-002	8.42984E-008	......	...........
+	13	2.21757E+001	2.13051E-002	8.43464E-008	......	...........
+	14	2.23318E+001	2.26647E-002	8.41515E-008	......	...........
+	15	2.24880E+001	2.39628E-002	8.38004E-008	......	...........
+	16	2.26442E+001	2.52102E-002	8.32052E-008	......	...........
+	17	2.28003E+001	2.63949E-002	8.24376E-008	......	...........
+	18	2.29565E+001	2.75239E-002	8.14741E-008	......	...........
+	19	2.31127E+001	2.85781E-002	8.02530E-008	......	...........
+	20	2.32688E+001	2.95617E-002	7.88042E-008	......	...........
+	21	2.34250E+001	3.04763E-002	7.72011E-008	......	...........
+	22	2.35812E+001	3.13143E-002	7.53555E-008	......	...........
+	23	2.37373E+001	3.20796E-002	7.33522E-008	......	...........
+	24	2.38935E+001	3.27677E-002	7.11711E-008	......	...........
+	25	2.40497E+001	3.33815E-002	6.87422E-008	......	...........
+	26	2.42058E+001	3.39100E-002	6.61473E-008	......	...........
+	27	2.43620E+001	3.43571E-002	6.33916E-008	......	...........
+	28	2.45182E+001	3.47251E-002	6.04607E-008	......	...........
+	29	2.46743E+001	3.50064E-002	5.73678E-008	......	...........
+	30	2.48305E+001	3.52030E-002	5.40375E-008	......	...........
+	31	2.49867E+001	3.53189E-002	5.06270E-008	......	...........
+	32	2.51428E+001	3.53388E-002	4.70550E-008	......	...........
+	33	2.52990E+001	3.52858E-002	4.33752E-008	......	...........
+	34	2.54552E+001	3.51424E-002	3.95405E-008	......	...........
+	35	2.56113E+001	3.49148E-002	3.55785E-008	......	...........
+	36	2.57675E+001	3.45977E-002	3.15256E-008	......	...........
+	37	2.59237E+001	3.42030E-002	2.73773E-008	......	...........
+	38	2.60798E+001	3.37258E-002	2.31356E-008	......	...........
+	39	2.62360E+001	3.31652E-002	1.88599E-008	......	...........
+	40	2.63922E+001	3.25268E-002	1.45183E-008	......	...........
+	41	2.65483E+001	3.18056E-002	1.01144E-008	......	...........
+	42	2.67045E+001	3.10134E-002	5.69510E-009	......	...........
+	43	2.68607E+001	3.01494E-002	1.30076E-009	......	...........
+	44	2.70168E+001	2.92063E-002	-3.15337E-009	......	...........
+	45	2.71730E+001	2.81973E-002	-7.60294E-009	......	...........
+	46	2.73292E+001	2.71132E-002	-1.20528E-008	......	...........
+	47	2.74853E+001	2.59677E-002	-1.64210E-008	......	...........
+	48	2.76415E+001	2.47608E-002	-2.07737E-008	......	...........
+	49	2.77977E+001	2.34945E-002	-2.50696E-008	......	...........
+	50	2.79538E+001	2.21700E-002	-2.92857E-008	......	...........
+	51	2.81100E+001	2.07896E-002	-3.34674E-008	......	...........
+	52	2.82662E+001	1.93616E-002	-3.75778E-008	......	...........
+	53	2.84223E+001	1.78853E-002	-4.16048E-008	......	...........
+	54	2.85785E+001	1.63682E-002	-4.55064E-008	......	...........
+	55	2.87347E+001	1.48129E-002	-4.93260E-008	......	...........
+	56	2.88908E+001	1.32167E-002	-5.30700E-008	......	...........
+	57	2.90470E+001	1.15936E-002	-5.66206E-008	......	...........
+	58	2.92032E+001	9.94189E-003	-6.01349E-008	......	...........
+	59	2.93593E+001	8.26565E-003	-6.34811E-008	......	...........
+	60	2.95155E+001	6.56624E-003	-6.67379E-008	......	...........
+	61	2.96717E+001	4.85650E-003	-6.98433E-008	......	...........
+	62	2.98278E+001	3.13268E-003	-7.28302E-008	......	...........
+	63	2.99840E+001	1.39823E-003	-7.57381E-008	......	...........
+	64	3.01402E+001	-3.39436E-004	-7.83985E-008	......	...........
+	65	3.02963E+001	-2.07896E-003	-8.09639E-008	......	...........
+	66	3.04525E+001	-3.80585E-003	-8.33554E-008	......	...........
+	67	3.06087E+001	-5.52695E-003	-8.55924E-008	......	...........
+	68	3.07648E+001	-7.23441E-003	-8.76424E-008	......	...........
+	69	3.09210E+001	-8.92444E-003	-8.95464E-008	......	...........
+	70	3.10772E+001	-1.05901E-002	-9.12661E-008	......	...........
+	71	3.12333E+001	-1.22349E-002	-9.28601E-008	......	...........
+	72	3.13895E+001	-1.38498E-002	-9.42270E-008	......	...........
+	73	3.15457E+001	-1.54277E-002	-9.54292E-008	......	...........
+	74	3.17018E+001	-1.69713E-002	-9.64431E-008	......	...........
+	75	3.18580E+001	-1.84752E-002	-9.73170E-008	......	...........
+	76	3.20142E+001	-1.99289E-002	-9.79976E-008	......	...........
+	77	3.21703E+001	-2.13407E-002	-9.84897E-008	......	...........
+	78	3.23265E+001	-2.26952E-002	-9.88164E-008	......	...........
+	79	3.24827E+001	-2.39986E-002	-9.89580E-008	......	...........
+	80	1.26495E+001	-2.52504E-002	-9.90898E-008	......	...........
+	81	1.28057E+001	-2.64299E-002	-9.87988E-008	......	...........
+	82	1.29618E+001	-2.75551E-002	-9.84151E-008	......	...........
+	83	1.31180E+001	-2.86107E-002	-9.78421E-008	......	...........
+	84	1.32742E+001	-2.96019E-002	-9.70018E-008	......	...........
+	85	1.34303E+001	-3.05155E-002	-9.59847E-008	......	...........
+	86	1.35865E+001	-3.13553E-002	-9.47398E-008	......	...........
+	87	1.37427E+001	-3.21192E-002	-9.33093E-008	......	...........
+	88	1.38988E+001	-3.28086E-002	-9.16667E-008	......	...........
+	89	1.40550E+001	-3.34137E-002	-8.97930E-008	......	...........
+	90	1.42112E+001	-3.39432E-002	-8.77281E-008	......	...........
+	91	1.43673E+001	-3.43928E-002	-8.54721E-008	......	...........
+	92	1.45235E+001	-3.47590E-002	-8.29779E-008	......	...........
+	93	1.46797E+001	-3.50405E-002	-8.02933E-008	......	...........
+	94	1.48358E+001	-3.52368E-002	-7.73387E-008	......	...........
+	95	1.49920E+001	-3.53492E-002	-7.41683E-008	......	...........
+	96	1.51482E+001	-3.53751E-002	-7.07896E-008	......	...........
+	97	1.53043E+001	-3.53130E-002	-6.74442E-008	......	...........
+	98	1.54605E+001	-3.51719E-002	-6.36926E-008	......	...........
+	99	1.56167E+001	-3.49449E-002	-5.97295E-008	......	...........
+	100	1.57728E+001	-3.46339E-002	-5.55519E-008	......	...........
+	101	1.59290E+001	-3.42331E-002	-5.12990E-008	......	...........
+	102	1.60852E+001	-3.37556E-002	-4.67970E-008	......	...........
+	103	1.62413E+001	-3.31973E-002	-4.21745E-008	......	...........
+	104	1.63975E+001	-3.25569E-002	-3.74795E-008	......	...........
+	105	1.65537E+001	-3.18414E-002	-3.26801E-008	......	...........
+	106	1.67098E+001	-3.10504E-002	-2.77834E-008	......	...........
+	107	1.68660E+001	-3.01839E-002	-2.27885E-008	......	...........
+	108	1.70222E+001	-2.92396E-002	-1.77165E-008	......	...........
+	109	1.71783E+001	-2.82285E-002	-1.26698E-008	......	...........
+	110	1.73345E+001	-2.71468E-002	-7.52819E-009	......	...........
+	111	1.74907E+001	-2.59997E-002	-2.45866E-009	......	...........
+	112	1.76468E+001	-2.47959E-002	2.53859E-009	......	...........
+	113	1.78030E+001	-2.35282E-002	7.57628E-009	......	...........
+	114	1.79592E+001	-2.22024E-002	1.25129E-008	......	...........
+	115	1.81153E+001	-2.08242E-002	1.73262E-008	......	...........
+	116	1.82715E+001	-1.93963E-002	2.20974E-008	......	...........
+	117	1.84277E+001	-1.79208E-002	2.67388E-008	......	...........
+	118	1.85838E+001	-1.64020E-002	3.12340E-008	......	...........
+	119	1.87400E+001	-1.48467E-002	3.55955E-008	......	...........
+	120	1.88962E+001	-1.32568E-002	3.97974E-008	......	...........
+	121	1.90523E+001	-1.16311E-002	4.38713E-008	......	...........
+	122	1.92085E+001	-9.98103E-003	4.77737E-008	......	...........
+	123	1.93647E+001	-8.30479E-003	5.14712E-008	......	...........
+	124	1.95208E+001	-6.60479E-003	5.50472E-008	......	...........
+	125	1.96770E+001	-4.89479E-003	5.83821E-008	......	...........
+	126	1.98332E+001	-3.17205E-003	6.15021E-008	......	...........
+	127	1.99893E+001	-1.43755E-003	6.44974E-008	......	...........
diff --git a/impedance/preprocessing.py b/impedance/preprocessing.py
index f75961e..e289f57 100644
--- a/impedance/preprocessing.py
+++ b/impedance/preprocessing.py
@@ -74,11 +74,19 @@ def readGamry(filename):
     with open(filename, 'r', encoding='ISO-8859-1') as input_file:
         lines = input_file.readlines()
 
+    end_line = 0
+
     for i, line in enumerate(lines):
         if 'ZCURVE' in line:
             start_line = i
+        if 'EXPERIMENTABORTED' in line:
+            end_line = i
+
+    if end_line != 0:
+        raw_data = lines[start_line + 3:end_line]
+    else:
+        raw_data = lines[start_line + 3:]
 
-    raw_data = lines[start_line + 3:]
     f, Z = [], []
     for line in raw_data:
         each = line.split()

[BUG] Gamry data files fail to load if experiment was aborted
**Describe the bug**
Gamry adds some extra data at the end of the data file if the experiment is aborted and attempting to load it fails. 

> 81     for line in raw_data:
>      82         each = line.split()
> ---> 83         f.append(float(each[2]))
>      84         Z.append(complex(float(each[3]), float(each[4])))
>      85 
> 
> ValueError: could not convert string to float: 'T'


**To Reproduce**
Steps to reproduce the behavior:
1. Attempt to load the attached file using the preprocessing.readGamry function.

**Expected behavior**
Attempting to load the attached file should load the data that was obtained before experiment was aborted.

[exampleDataGamryABORT.DTA.txt](https://github.com/ECSHackWeek/impedance.py/files/4360772/exampleDataGamryABORT.DTA.txt)

Rename to exampleDataGamryABORT.DTA since Github doesn't support attaching .DTA files.
diff --git a/impedance/tests/test_preprocessing.py b/impedance/tests/test_preprocessing.py
index 8a7fab1..b787b88 100644
--- a/impedance/tests/test_preprocessing.py
+++ b/impedance/tests/test_preprocessing.py
@@ -353,6 +353,7 @@ Zi_CHInst = np.array([-2.748e+0, 1.603e+0, 7.538e-1, 6.836e-1, -7.515e-1,
 Z_CHInst = Zr_CHInst + 1j * Zi_CHInst
 
 example_files = {'gamry': 'exampleDataGamry.DTA',
+                 'gamry_abort': 'exampleDataGamryABORT.DTA',
                  'autolab': '',
                  'parstat': '',
                  'zplot': 'exampleDataZPlot.z',
@@ -401,8 +402,11 @@ def test_readBioLogic():
 
 def test_readGamry():
     f, Z = readGamry(os.path.join(directory, example_files['gamry']))
+    f_abort, Z_abort = readGamry(os.path.join(directory,
+                                              example_files['gamry_abort']))
 
     assert (f == f_gamry).all() and (Z == Z_gamry).all()
+    assert (f_abort == f_gamry).all() and (Z_abort == Z_gamry).all()
 
 
 def test_readPowerSuite():

pip install -e .[dev]
parse_log_pytest
requirements.txt
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.16
altair==5.5.0
attrs==25.3.0
babel==2.17.0
beautifulsoup4==4.13.3
bleach==6.2.0
certifi==2025.1.31
charset-normalizer==3.4.1
contourpy==1.3.0
coverage==7.8.0
cycler==0.12.1
defusedxml==0.7.1
docutils==0.21.2
exceptiongroup==1.2.2
fastjsonschema==2.21.1
fonttools==4.56.0
idna==3.10
imagesize==1.4.1
-e git+https://github.com/ECSHackWeek/impedance.py.git@d04f4da69be63e7bf4c83ef5e851da2712f476b1#egg=impedance
importlib_metadata==8.6.1
importlib_resources==6.5.2
iniconfig==2.1.0
Jinja2==3.1.6
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
jupyter_client==8.6.3
jupyter_core==5.7.2
jupyterlab_pygments==0.3.0
kiwisolver==1.4.7
MarkupSafe==3.0.2
matplotlib==3.9.4
mistune==3.1.3
narwhals==1.32.0
nbclient==0.10.2
nbconvert==7.16.6
nbformat==5.10.4
nbsphinx==0.9.7
numpy==2.0.2
numpydoc==1.8.0
packaging==24.2
pandocfilters==1.5.1
pillow==11.1.0
platformdirs==4.3.7
pluggy==1.5.0
Pygments==2.19.1
pyparsing==3.2.3
pytest==8.3.5
pytest-cov==6.0.0
python-dateutil==2.9.0.post0
pyzmq==26.3.0
referencing==0.36.2
requests==2.32.3
rpds-py==0.24.0
scipy==1.13.1
six==1.17.0
snowballstemmer==2.2.0
soupsieve==2.6
Sphinx==7.4.7
sphinxcontrib-applehelp==2.0.0
sphinxcontrib-devhelp==2.0.0
sphinxcontrib-htmlhelp==2.1.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==2.0.0
sphinxcontrib-serializinghtml==2.0.0
tabulate==0.9.0
tinycss2==1.4.0
tomli==2.2.1
tornado==6.4.2
traitlets==5.14.3
typing_extensions==4.13.0
urllib3==2.3.0
webencodings==0.5.1
zipp==3.21.0

name: impedance.py
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - alabaster==0.7.16
      - altair==5.5.0
      - attrs==25.3.0
      - babel==2.17.0
      - beautifulsoup4==4.13.3
      - bleach==6.2.0
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - contourpy==1.3.0
      - coverage==7.8.0
      - cycler==0.12.1
      - defusedxml==0.7.1
      - docutils==0.21.2
      - exceptiongroup==1.2.2
      - fastjsonschema==2.21.1
      - fonttools==4.56.0
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==8.6.1
      - importlib-resources==6.5.2
      - iniconfig==2.1.0
      - jinja2==3.1.6
      - jsonschema==4.23.0
      - jsonschema-specifications==2024.10.1
      - jupyter-client==8.6.3
      - jupyter-core==5.7.2
      - jupyterlab-pygments==0.3.0
      - kiwisolver==1.4.7
      - markupsafe==3.0.2
      - matplotlib==3.9.4
      - mistune==3.1.3
      - narwhals==1.32.0
      - nbclient==0.10.2
      - nbconvert==7.16.6
      - nbformat==5.10.4
      - nbsphinx==0.9.7
      - numpy==2.0.2
      - numpydoc==1.8.0
      - packaging==24.2
      - pandocfilters==1.5.1
      - pillow==11.1.0
      - platformdirs==4.3.7
      - pluggy==1.5.0
      - pygments==2.19.1
      - pyparsing==3.2.3
      - pytest==8.3.5
      - pytest-cov==6.0.0
      - python-dateutil==2.9.0.post0
      - pyzmq==26.3.0
      - referencing==0.36.2
      - requests==2.32.3
      - rpds-py==0.24.0
      - scipy==1.13.1
      - six==1.17.0
      - snowballstemmer==2.2.0
      - soupsieve==2.6
      - sphinx==7.4.7
      - sphinxcontrib-applehelp==2.0.0
      - sphinxcontrib-devhelp==2.0.0
      - sphinxcontrib-htmlhelp==2.1.0
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==2.0.0
      - sphinxcontrib-serializinghtml==2.0.0
      - tabulate==0.9.0
      - tinycss2==1.4.0
      - tomli==2.2.1
      - tornado==6.4.2
      - traitlets==5.14.3
      - typing-extensions==4.13.0
      - urllib3==2.3.0
      - webencodings==0.5.1
      - zipp==3.21.0
prefix: /opt/conda/envs/impedance.py

impedance/tests/test_preprocessing.py::test_readGamry
impedance/tests/test_preprocessing.py::test_readFile impedance/tests/test_preprocessing.py::test_readBioLogic impedance/tests/test_preprocessing.py::test_readPowerSuite impedance/tests/test_preprocessing.py::test_readVersaStudio impedance/tests/test_preprocessing.py::test_readCHInstruments impedance/tests/test_preprocessing.py::test_readZPlot impedance/tests/test_preprocessing.py::test_readCSV impedance/tests/test_preprocessing.py::test_ignoreBelowX impedance/tests/test_preprocessing.py::test_cropFreq_maxonly impedance/tests/test_preprocessing.py::test_cropFreq_minonly impedance/tests/test_preprocessing.py::test_cropFreq_both
impedance/preprocessing.py data/exampleDataGamryABORT.DTA
impedance/preprocessing.py data/exampleDataGamryABORT.DTA