Author: bugman Date: Fri Jun 21 20:01:06 2013 New Revision: 20251 URL: http://svn.gna.org/viewcvs/relax?rev=20251&view=rev Log: Autodetect format implemented for NMRPipe SeriesTab format implemented. Progress sr #3043: (https://gna.org/support/index.php?3043) - Support for NMRPipe seriesTab format *.ser. The file is determined a NMRPipe SeriesTab if the first two words of the first line is: REMARK SeriesTab. Modified: trunk/pipe_control/spectrum.py Modified: trunk/pipe_control/spectrum.py URL: http://svn.gna.org/viewcvs/relax/trunk/pipe_control/spectrum.py?rev=20251&r1=20250&r2=20251&view=diff ============================================================================== --- trunk/pipe_control/spectrum.py (original) +++ trunk/pipe_control/spectrum.py Fri Jun 21 20:01:06 2013 @@ -2,6 +2,7 @@ # # # Copyright (C) 2004-2013 Edward d'Auvergne # # Copyright (C) 2008 Sebastien Morin # +# Copyright (C) 2013 Troels E. Linnet # # # # This file is part of the program relax (http://www.nmr-relax.com). # # # @@ -270,6 +271,10 @@ # NMRView format. if line == ['label', 'dataset', 'sw', 'sf']: return 'nmrview' + + # NMRPipe SeriesTab. + if line[0] == 'REMARK' and line[1] == 'SeriesTab': + return 'seriestab' # XEasy format. if line == ['No.', 'Color', 'w1', 'w2', 'ass.', 'in', 'w1', 'ass.', 'in', 'w2', 'Volume', 'Vol.', 'Err.', 'Method', 'Comment']: