Commits

AJ R committed cd2236f

added two unittests, experimented with tox

Comments (0)

Files changed (4)

 graft savReaderWriter/documentation
 graft savReaderWriter/doc_tests
 graft savReaderWriter/test_data
-graft savReaderWriter/spssio 
+#graft savReaderWriter/spssio
+prune savReaderWriter/spssio
+graft savReaderWriter/spssio/lin32
 include ez_setup.py
 include VERSION
 include TODO

savReaderWriter/unit_tests/test_SavReader_typical_use.py

+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+##############################################################################
+## Read a file and iterate over its records (typical use)
+##############################################################################
+
+import unittest
+from savReaderWriter import *
+
+records_expected = \
+    [['id', 'gender', 'bdate', 'educ', 'jobcat', 'salary', 'salbegin', 'jobtime', 'prevexp', 'minority'],
+     [1.0, 'm', '1952-02-03', 15.0, 3.0, 57000.0, 27000.0, 98.0, 144.0, 0.0],
+     [2.0, 'm', '1958-05-23', 16.0, 1.0, 40200.0, 18750.0, 98.0, 36.0, 0.0],
+     [3.0, 'f', '1929-07-26', 12.0, 1.0, 21450.0, 12000.0, 98.0, 381.0, 0.0],
+     [4.0, 'f', '1947-04-15', 8.0, 1.0, 21900.0, 13200.0, 98.0, 190.0, 0.0],
+     [5.0, 'm', '1955-02-09', 15.0, 1.0, 45000.0, 21000.0, 98.0, 138.0, 0.0],
+     [6.0, 'm', '1958-08-22', 15.0, 1.0, 32100.0, 13500.0, 98.0, 67.0, 0.0],
+     [7.0, 'm', '1956-04-26', 15.0, 1.0, 36000.0, 18750.0, 98.0, 114.0, 0.0],
+     [8.0, 'f', '1966-05-06', 12.0, 1.0, 21900.0, 9750.0, 98.0, 0.0, 0.0],
+     [9.0, 'f', '1946-01-23', 15.0, 1.0, 27900.0, 12750.0, 98.0, 115.0, 0.0],
+     [10.0, 'f', '1946-02-13', 12.0, 1.0, 24000.0, 13500.0, 98.0, 244.0, 0.0],
+     [11.0, 'f', '1950-02-07', 16.0, 1.0, 30300.0, 16500.0, 98.0, 143.0, 0.0],
+     [12.0, 'm', '1966-01-11', 8.0, 1.0, 28350.0, 12000.0, 98.0, 26.0, 1.0],
+     [13.0, 'm', '1960-07-17', 15.0, 1.0, 27750.0, 14250.0, 98.0, 34.0, 1.0],
+     [14.0, 'f', '1949-02-26', 15.0, 1.0, 35100.0, 16800.0, 98.0, 137.0, 1.0],
+     [15.0, 'm', '1962-08-29', 12.0, 1.0, 27300.0, 13500.0, 97.0, 66.0, 0.0],
+     [16.0, 'm', '1964-11-17', 12.0, 1.0, 40800.0, 15000.0, 97.0, 24.0, 0.0],
+     [17.0, 'm', '1962-07-18', 15.0, 1.0, 46000.0, 14250.0, 97.0, 48.0, 0.0],
+     [18.0, 'm', '1956-03-20', 16.0, 3.0, 103750.0, 27510.0, 97.0, 70.0, 0.0],
+     [19.0, 'm', '1962-08-19', 12.0, 1.0, 42300.0, 14250.0, 97.0, 103.0, 0.0],
+     [20.0, 'f', '1940-01-23', 12.0, 1.0, 26250.0, 11550.0, 97.0, 48.0, 0.0],
+     [21.0, 'f', '1963-02-19', 16.0, 1.0, 38850.0, 15000.0, 97.0, 17.0, 0.0],
+     [22.0, 'm', '1940-09-24', 12.0, 1.0, 21750.0, 12750.0, 97.0, 315.0, 1.0],
+     [23.0, 'f', '1965-03-15', 15.0, 1.0, 24000.0, 11100.0, 97.0, 75.0, 1.0],
+     [24.0, 'f', '1933-03-27', 12.0, 1.0, 16950.0, 9000.0, 97.0, 124.0, 1.0],
+     [25.0, 'f', '1942-07-01', 15.0, 1.0, 21150.0, 9000.0, 97.0, 171.0, 1.0],
+     [26.0, 'm', '1966-11-08', 15.0, 1.0, 31050.0, 12600.0, 96.0, 14.0, 0.0],
+     [27.0, 'm', '1954-03-19', 19.0, 3.0, 60375.0, 27480.0, 96.0, 96.0, 0.0],
+     [28.0, 'm', '1963-04-11', 15.0, 1.0, 32550.0, 14250.0, 96.0, 43.0, 0.0],
+     [29.0, 'm', '1944-01-28', 19.0, 3.0, 135000.0, 79980.0, 96.0, 199.0, 0.0],
+     [30.0, 'm', '1961-09-17', 15.0, 1.0, 31200.0, 14250.0, 96.0, 54.0, 0.0],
+     [31.0, 'm', '1964-02-24', 12.0, 1.0, 36150.0, 14250.0, 96.0, 83.0, 0.0],
+     [32.0, 'm', '1954-01-28', 19.0, 3.0, 110625.0, 45000.0, 96.0, 120.0, 0.0],
+     [33.0, 'm', '1961-03-18', 15.0, 1.0, 42000.0, 15000.0, 96.0, 68.0, 0.0],
+     [34.0, 'm', '1949-02-02', 19.0, 3.0, 92000.0, 39990.0, 96.0, 175.0, 0.0],
+     [35.0, 'm', '1961-08-22', 17.0, 3.0, 81250.0, 30000.0, 96.0, 18.0, 0.0],
+     [36.0, 'f', '1963-08-07', 8.0, 1.0, 31350.0, 11250.0, 96.0, 52.0, 0.0],
+     [37.0, 'm', '1954-10-09', 12.0, 1.0, 29100.0, 13500.0, 96.0, 113.0, 1.0],
+     [38.0, 'm', '1962-04-27', 15.0, 1.0, 31350.0, 15000.0, 96.0, 49.0, 1.0],
+     [39.0, 'm', '1960-06-22', 16.0, 1.0, 36000.0, 15000.0, 96.0, 46.0, 1.0],
+     [40.0, 'f', '1933-08-28', 15.0, 1.0, 19200.0, 9000.0, 96.0, 23.0, 1.0],
+     [41.0, 'f', '1961-03-18', 12.0, 1.0, 23550.0, 11550.0, 96.0, 52.0, 1.0],
+     [42.0, 'm', '1960-09-23', 15.0, 1.0, 35100.0, 16500.0, 95.0, 90.0, 0.0],
+     [43.0, 'm', '1964-01-18', 12.0, 1.0, 23250.0, 14250.0, 95.0, 46.0, 0.0],
+     [44.0, 'm', '1963-06-15', 8.0, 1.0, 29250.0, 14250.0, 95.0, 50.0, 0.0],
+     [45.0, 'm', '1938-08-02', 12.0, 2.0, 30750.0, 13500.0, 95.0, 307.0, 0.0],
+     [46.0, 'f', '1940-11-18', 15.0, 1.0, 22350.0, 12750.0, 95.0, 165.0, 0.0],
+     [47.0, 'f', '1938-04-28', 12.0, 1.0, 30000.0, 16500.0, 95.0, 228.0, 0.0],
+     [48.0, 'm', '1947-06-07', 12.0, 2.0, 30750.0, 14100.0, 94.0, 240.0, 0.0],
+     [49.0, 'm', '1958-09-16', 15.0, 1.0, 34800.0, 16500.0, 94.0, 93.0, 0.0],
+     [50.0, 'm', '1960-02-09', 16.0, 3.0, 60000.0, 23730.0, 94.0, 59.0, 0.0],
+     [51.0, 'm', '1962-07-08', 12.0, 1.0, 35550.0, 15000.0, 94.0, 48.0, 0.0],
+     [52.0, 'm', '1963-11-12', 15.0, 1.0, 45150.0, 15000.0, 94.0, 40.0, 0.0],
+     [53.0, 'm', '1954-04-21', 18.0, 3.0, 73750.0, 26250.0, 94.0, 56.0, 0.0],
+     [54.0, 'm', '1931-06-04', 12.0, 1.0, 25050.0, 13500.0, 94.0, 444.0, 0.0],
+     [55.0, 'm', '1960-06-25', 12.0, 1.0, 27000.0, 15000.0, 94.0, 120.0, 0.0],
+     [56.0, 'm', '1962-04-16', 15.0, 1.0, 26850.0, 13500.0, 94.0, 5.0, 0.0],
+     [57.0, 'm', '1963-04-15', 15.0, 1.0, 33900.0, 15750.0, 94.0, 78.0, 0.0],
+     [58.0, 'f', '1964-11-14', 15.0, 1.0, 26400.0, 13500.0, 94.0, 3.0, 0.0],
+     [59.0, 'm', '1961-05-07', 15.0, 1.0, 28050.0, 14250.0, 94.0, 36.0, 1.0],
+     [60.0, 'm', '1959-02-16', 12.0, 1.0, 30900.0, 15000.0, 94.0, 102.0, 1.0],
+     [61.0, 'm', '1964-04-28', 8.0, 1.0, 22500.0, 9750.0, 94.0, 36.0, 1.0],
+     [62.0, 'm', '1962-07-18', 16.0, 3.0, 48000.0, 21750.0, 93.0, 22.0, 0.0],
+     [63.0, 'm', '1961-08-20', 17.0, 3.0, 55000.0, 26250.0, 93.0, 32.0, 0.0],
+     [64.0, 'm', '1963-09-28', 16.0, 3.0, 53125.0, 21000.0, 93.0, 48.0, 0.0],
+     [65.0, 'm', '1964-03-28', 8.0, 1.0, 21900.0, 14550.0, 93.0, 41.0, 0.0],
+     [66.0, 'm', '1962-02-16', 19.0, 3.0, 78125.0, 30000.0, 93.0, 7.0, 0.0],
+     [67.0, 'm', '1964-05-28', 16.0, 3.0, 46000.0, 21240.0, 93.0, 35.0, 0.0],
+     [68.0, 'm', '1963-05-05', 16.0, 3.0, 45250.0, 21480.0, 93.0, 36.0, 0.0],
+     [69.0, 'm', '1960-06-23', 16.0, 3.0, 56550.0, 25000.0, 93.0, 34.0, 0.0],
+     [70.0, 'm', '1962-02-08', 15.0, 1.0, 41100.0, 20250.0, 93.0, 27.0, 0.0],
+     [71.0, 'm', '1948-08-26', 17.0, 3.0, 82500.0, 34980.0, 93.0, 207.0, 0.0],
+     [72.0, 'f', '1964-01-07', 16.0, 1.0, 54000.0, 18000.0, 93.0, 11.0, 0.0],
+     [73.0, 'f', '1968-02-09', 12.0, 1.0, 26400.0, 10500.0, 93.0, 0.0, 0.0],
+     [74.0, 'f', '1933-04-28', 15.0, 1.0, 33900.0, 19500.0, 93.0, 192.0, 0.0],
+     [75.0, 'f', '1965-08-12', 15.0, 1.0, 24150.0, 11550.0, 93.0, 0.0, 0.0],
+     [76.0, 'f', '1967-09-03', 15.0, 1.0, 29250.0, 11550.0, 93.0, 11.0, 0.0],
+     [77.0, 'f', '1968-09-09', 12.0, 1.0, 27600.0, 11400.0, 93.0, 6.0, 0.0],
+     [78.0, 'f', '1968-08-20', 12.0, 1.0, 22950.0, 10500.0, 93.0, 10.0, 0.0],
+     [79.0, 'f', '1962-01-23', 16.0, 1.0, 34800.0, 14550.0, 93.0, 8.0, 0.0],
+     [80.0, 'f', '1961-05-25', 16.0, 1.0, 51000.0, 18000.0, 93.0, 22.0, 0.0],
+     [81.0, 'f', '1968-03-12', 12.0, 1.0, 24300.0, 10950.0, 93.0, 5.0, 0.0],
+     [82.0, 'f', '1947-08-28', 12.0, 1.0, 24750.0, 14250.0, 93.0, 193.0, 1.0],
+     [83.0, 'f', '1967-10-12', 12.0, 1.0, 22950.0, 11250.0, 93.0, 0.0, 1.0],
+     [84.0, 'f', '1967-03-12', 8.0, 1.0, 25050.0, 10950.0, 93.0, 8.0, 1.0],
+     [85.0, 'm', '1962-04-09', 15.0, 1.0, 25950.0, 17100.0, 92.0, 42.0, 0.0],
+     [86.0, 'm', '1961-08-25', 15.0, 1.0, 31650.0, 15750.0, 92.0, 64.0, 0.0],
+     [87.0, 'm', '1959-10-20', 12.0, 1.0, 24150.0, 14100.0, 92.0, 130.0, 0.0],
+     [88.0, 'm', '1962-02-10', 19.0, 3.0, 72500.0, 28740.0, 92.0, 10.0, 0.0],
+     [89.0, 'm', '1961-06-24', 19.0, 3.0, 68750.0, 27480.0, 92.0, 8.0, 0.0],
+     [90.0, 'f', '1938-02-27', 8.0, 1.0, 16200.0, 9750.0, 92.0, 0.0, 0.0],
+     [91.0, 'f', '1967-11-04', 12.0, 1.0, 20100.0, 11250.0, 92.0, 24.0, 0.0],
+     [92.0, 'f', '1968-06-25', 8.0, 1.0, 24000.0, 10950.0, 92.0, 6.0, 0.0],
+     [93.0, 'f', '1968-03-05', 12.0, 1.0, 25950.0, 10950.0, 92.0, 0.0, 0.0],
+     [94.0, 'f', '1950-08-04', 12.0, 1.0, 24600.0, 10050.0, 92.0, 44.0, 0.0],
+     [95.0, 'f', '1968-08-08', 12.0, 1.0, 28500.0, 10500.0, 92.0, 6.0, 0.0],
+     [96.0, 'm', '1933-10-02', 8.0, 2.0, 30750.0, 15000.0, 92.0, 432.0, 1.0],
+     [97.0, 'm', '1953-01-18', 17.0, 1.0, 40200.0, 19500.0, 92.0, 168.0, 1.0],
+     [98.0, 'm', '1956-05-17', 8.0, 2.0, 30000.0, 15000.0, 92.0, 144.0, 1.0],
+     [99.0, 'f', '1968-07-07', 12.0, 1.0, 22050.0, 10950.0, 92.0, 5.0, 1.0],
+     [100.0, 'm', '1963-10-25', 18.0, 3.0, 78250.0, 27480.0, 91.0, 47.0, 0.0],
+     [101.0, 'm', '1960-03-14', 16.0, 3.0, 60625.0, 22500.0, 91.0, 44.0, 0.0],
+     [102.0, 'm', '1963-03-28', 14.0, 1.0, 39900.0, 15750.0, 91.0, 59.0, 0.0],
+     [103.0, 'm', '1959-03-17', 19.0, 3.0, 97000.0, 35010.0, 91.0, 68.0, 0.0],
+     [104.0, 'm', '1962-11-05', 15.0, 1.0, 27450.0, 15750.0, 91.0, 48.0, 0.0],
+     [105.0, 'm', '1966-03-07', 15.0, 1.0, 31650.0, 13500.0, 91.0, 18.0, 0.0],
+     [106.0, 'm', '1962-08-04', 19.0, 3.0, 91250.0, 29490.0, 91.0, 23.0, 0.0],
+     [107.0, 'f', '1960-08-16', 12.0, 1.0, 25200.0, 14400.0, 91.0, 83.0, 0.0],
+     [108.0, 'f', '1930-07-16', 12.0, 1.0, 21000.0, 11550.0, 91.0, 108.0, 0.0],
+     [109.0, 'm', '1963-11-10', 12.0, 1.0, 30450.0, 15000.0, 91.0, 49.0, 1.0],
+     [110.0, 'm', '1952-10-29', 15.0, 1.0, 28350.0, 18000.0, 91.0, 151.0, 1.0],
+     [111.0, 'm', '1940-11-27', 12.0, 2.0, 30750.0, 9000.0, 91.0, 314.0, 1.0],
+     [112.0, 'm', '1948-06-21', 12.0, 2.0, 30750.0, 15000.0, 91.0, 240.0, 1.0],
+     [113.0, 'm', '1959-10-06', 16.0, 3.0, 54875.0, 27480.0, 90.0, 68.0, 0.0],
+     [114.0, 'm', '1961-08-25', 14.0, 1.0, 37800.0, 16500.0, 90.0, 60.0, 0.0],
+     [115.0, 'm', '1961-05-12', 15.0, 1.0, 33450.0, 14100.0, 90.0, 85.0, 0.0],
+     [116.0, 'm', '1962-06-09', 15.0, 1.0, 30300.0, 16500.0, 90.0, 16.0, 0.0],
+     [117.0, 'f', '1932-01-14', 12.0, 1.0, 31500.0, 18750.0, 90.0, 205.0, 0.0],
+     [118.0, 'f', '1964-03-04', 12.0, 1.0, 31650.0, 14250.0, 90.0, 48.0, 0.0],
+     [119.0, 'f', '1963-07-23', 12.0, 1.0, 25200.0, 14100.0, 90.0, 55.0, 0.0],
+     [120.0, 'f', '1964-11-12', 16.0, 3.0, 37800.0, 15750.0, 90.0, 7.0, 0.0],
+     [121.0, 'f', '1936-08-06', 15.0, 1.0, 18750.0, 10500.0, 90.0, 54.0, 0.0],
+     [122.0, 'f', '1965-09-26', 15.0, 1.0, 32550.0, 13500.0, 90.0, 22.0, 0.0],
+     [123.0, 'f', '1949-04-24', 12.0, 1.0, 33300.0, 15000.0, 90.0, 3.0, 0.0],
+     [124.0, 'f', '1963-05-29', 16.0, 1.0, 38550.0, 16500.0, 90.0, 0.0, 0.0],
+     [125.0, 'm', '1956-08-06', 12.0, 1.0, 27450.0, 15000.0, 90.0, 173.0, 1.0],
+     [126.0, 'm', '1951-01-21', 15.0, 2.0, 24300.0, 15000.0, 90.0, 191.0, 1.0],
+     [127.0, 'm', '1950-09-01', 12.0, 2.0, 30750.0, 15000.0, 90.0, 209.0, 1.0],
+     [128.0, 'f', '1946-07-25', 12.0, 1.0, 19650.0, 9750.0, 90.0, 229.0, 1.0],
+     [129.0, 'm', '1959-07-18', 17.0, 3.0, 68750.0, 27510.0, 89.0, 38.0, 0.0],
+     [130.0, 'm', '1958-09-06', 20.0, 3.0, 59375.0, 30000.0, 89.0, 6.0, 0.0],
+     [131.0, 'm', '1962-02-08', 15.0, 1.0, 31500.0, 15750.0, 89.0, 22.0, 0.0],
+     [132.0, 'm', '1953-05-17', 12.0, 1.0, 27300.0, 17250.0, 89.0, 175.0, 0.0],
+     [133.0, 'm', '1959-09-12', 15.0, 1.0, 27000.0, 15750.0, 89.0, 87.0, 0.0],
+     [134.0, 'f', '1941-11-10', 16.0, 3.0, 41550.0, 24990.0, 89.0, 285.0, 0.0],
+     [135.0, 'f', '1968-05-22', 12.0, 1.0, 26250.0, 10950.0, 89.0, 0.0, 0.0],
+     [136.0, 'm', '1939-08-25', 12.0, 1.0, 22200.0, 15000.0, 88.0, 324.0, 0.0],
+     [137.0, 'm', '1937-07-12', 21.0, 3.0, 65000.0, 37500.0, 88.0, 264.0, 0.0],
+     [138.0, 'm', '1947-01-09', 12.0, 1.0, 30900.0, 15000.0, 88.0, 252.0, 0.0],
+     [139.0, 'f', '1931-06-18', 8.0, 1.0, 20100.0, 13200.0, 88.0, 90.0, 0.0],
+     [140.0, 'f', '1965-04-05', 12.0, 1.0, 22350.0, 13500.0, 88.0, 26.0, 0.0],
+     [141.0, 'f', '1966-06-14', 15.0, 1.0, 35550.0, 13350.0, 88.0, 32.0, 0.0],
+     [142.0, 'f', '1966-11-13', 12.0, 1.0, 28500.0, 13950.0, 88.0, 34.0, 0.0],
+     [143.0, 'f', '1939-08-24', 12.0, 1.0, 24450.0, 13200.0, 88.0, 107.0, 0.0],
+     [144.0, 'f', '1931-08-28', 8.0, 1.0, 16650.0, 9750.0, 88.0, 412.0, 0.0],
+     [145.0, 'm', '1964-01-15', 12.0, 1.0, 26700.0, 13500.0, 88.0, 38.0, 1.0],
+     [146.0, 'm', '1951-01-02', 18.0, 1.0, 43950.0, 23250.0, 88.0, 182.0, 1.0],
+     [147.0, 'm', '1936-09-11', 15.0, 1.0, 23700.0, 13500.0, 88.0, 359.0, 1.0],
+     [148.0, 'f', '1959-10-05', 15.0, 1.0, 26550.0, 14250.0, 88.0, 61.0, 1.0],
+     [149.0, 'm', '1962-06-28', 12.0, 1.0, 27600.0, 15000.0, 87.0, 75.0, 0.0],
+     [150.0, 'm', '1954-03-05', 12.0, 1.0, 25800.0, 15000.0, 87.0, 143.0, 0.0],
+     [151.0, 'm', '1954-08-16', 16.0, 3.0, 42300.0, 26250.0, 87.0, 126.0, 0.0],
+     [152.0, 'm', '1929-05-03', 8.0, 2.0, 30750.0, 15000.0, 87.0, 451.0, 0.0],
+     [153.0, 'f', '1967-05-13', 12.0, 1.0, 26700.0, 12900.0, 87.0, 18.0, 0.0],
+     [154.0, 'f', '1940-06-07', 12.0, 1.0, 20850.0, 12000.0, 87.0, 163.0, 0.0],
+     [155.0, 'm', '1963-03-06', 15.0, 1.0, 35250.0, 15000.0, 87.0, 54.0, 1.0],
+     [156.0, 'm', '1963-01-12', 15.0, 1.0, 26700.0, 15000.0, 87.0, 56.0, 1.0],
+     [157.0, 'f', '1967-07-02', 12.0, 1.0, 26550.0, 13050.0, 87.0, 11.0, 1.0],
+     [158.0, 'f', '1964-09-20', 12.0, 1.0, 27750.0, 12000.0, 87.0, 11.0, 1.0],
+     [159.0, 'f', '1951-01-13', 16.0, 1.0, 25050.0, 12750.0, 87.0, 123.0, 1.0],
+     [160.0, 'm', '1951-08-27', 16.0, 3.0, 66000.0, 47490.0, 86.0, 150.0, 0.0],
+     [161.0, 'm', '1963-02-11', 16.0, 1.0, 52650.0, 19500.0, 86.0, 20.0, 0.0],
+     [162.0, 'm', '1961-05-25', 16.0, 3.0, 45625.0, 23250.0, 86.0, 60.0, 0.0],
+     [163.0, 'm', '1965-11-10', 15.0, 1.0, 30900.0, 15000.0, 86.0, 25.0, 0.0],
+     [164.0, 'f', '1965-08-13', 15.0, 1.0, 29400.0, 16500.0, 86.0, 24.0, 0.0],
+     [165.0, 'f', '1966-04-29', 15.0, 1.0, 33300.0, 13500.0, 86.0, 24.0, 0.0],
+     [166.0, 'f', '1942-07-12', 12.0, 1.0, 21900.0, 9750.0, 86.0, 156.0, 0.0],
+     [167.0, 'f', '1932-08-26', 12.0, 1.0, 18150.0, 9750.0, 86.0, 72.0, 0.0],
+     [168.0, 'f', '1962-04-23', 16.0, 3.0, 46875.0, 17250.0, 86.0, 19.0, 0.0],
+     [169.0, 'm', '1965-05-23', 12.0, 1.0, 25500.0, 14400.0, 86.0, 37.0, 1.0],
+     [170.0, 'm', '1964-06-13', 12.0, 1.0, 26550.0, 15000.0, 86.0, 38.0, 1.0],
+     [171.0, 'm', '1930-01-21', 12.0, 1.0, 26700.0, 13500.0, 86.0, 367.0, 1.0],
+     [172.0, 'f', '1953-06-13', 15.0, 1.0, 29850.0, 15000.0, 86.0, 79.0, 1.0],
+     [173.0, 'm', '1950-01-15', 20.0, 3.0, 69250.0, 42480.0, 85.0, 134.0, 0.0],
+     [174.0, 'm', '1935-01-07', 8.0, 2.0, 31950.0, 15000.0, 85.0, 438.0, 0.0],
+     [175.0, 'm', '1938-01-08', 8.0, 1.0, 26250.0, 15600.0, 85.0, 171.0, 0.0],
+     [176.0, 'f', '1962-10-05', 16.0, 1.0, 35700.0, 17250.0, 85.0, 19.0, 0.0],
+     [177.0, 'f', '1962-08-11', 12.0, 1.0, 28500.0, 16500.0, 85.0, 69.0, 0.0],
+     [178.0, 'f', '1938-01-17', 12.0, 1.0, 17100.0, 10200.0, 85.0, 72.0, 0.0],
+     [179.0, 'm', '1965-01-19', 12.0, 1.0, 25200.0, 13050.0, 85.0, 29.0, 1.0],
+     [180.0, 'f', '1960-01-23', 12.0, 1.0, 24000.0, 12750.0, 85.0, 59.0, 1.0],
+     [181.0, 'f', '1939-01-04', 12.0, 1.0, 27450.0, 10200.0, 85.0, 101.0, 1.0],
+     [182.0, 'f', '1943-03-08', 12.0, 1.0, 18450.0, 10200.0, 85.0, 228.0, 1.0],
+     [183.0, 'm', '1960-03-01', 15.0, 1.0, 39300.0, 15750.0, 84.0, 72.0, 0.0],
+     [184.0, 'm', '1964-11-05', 15.0, 1.0, 38850.0, 15000.0, 84.0, 53.0, 0.0],
+     [185.0, 'm', '1930-08-28', 8.0, 2.0, 30750.0, 15000.0, 84.0, 380.0, 0.0],
+     [186.0, 'm', '1964-07-06', 15.0, 1.0, 37500.0, 20400.0, 84.0, 33.0, 0.0],
+     [187.0, 'm', '1963-07-29', 16.0, 3.0, 58750.0, 21750.0, 84.0, 13.0, 0.0],
+     [188.0, 'f', '1934-02-04', 12.0, 1.0, 34500.0, 18750.0, 84.0, 208.0, 0.0],
+     [189.0, 'f', '1950-03-28', 12.0, 1.0, 36000.0, 19980.0, 84.0, 240.0, 0.0],
+     [190.0, 'f', '1932-11-15', 8.0, 1.0, 29100.0, 16500.0, 84.0, 35.0, 0.0],
+     [191.0, 'f', '1931-10-23', 12.0, 1.0, 16500.0, 10200.0, 84.0, 288.0, 0.0],
+     [192.0, 'm', '1949-10-09', 12.0, 1.0, 19650.0, 12750.0, 84.0, 180.0, 1.0],
+     [193.0, 'f', '1966-07-22', 12.0, 1.0, 24750.0, 12000.0, 84.0, 41.0, 1.0],
+     [194.0, 'f', '1938-04-10', 15.0, 1.0, 27150.0, 15750.0, 84.0, 231.0, 1.0],
+     [195.0, 'f', '1955-11-06', 12.0, 1.0, 26400.0, 12750.0, 84.0, 36.0, 1.0],
+     [196.0, 'f', '1946-03-03', 16.0, 1.0, 23100.0, 12000.0, 84.0, 214.0, 1.0],
+     [197.0, 'm', '1962-10-01', 15.0, 3.0, 54900.0, 25500.0, 83.0, 49.0, 0.0],
+     [198.0, 'm', '1952-03-17', 19.0, 3.0, 70875.0, 43500.0, 83.0, 156.0, 0.0],
+     [199.0, 'm', '1958-02-02', 16.0, 3.0, 51250.0, 27480.0, 83.0, 69.0, 0.0],
+     [200.0, 'm', '1963-02-13', 17.0, 3.0, 67500.0, 34980.0, 83.0, 9.0, 0.0],
+     [201.0, 'm', '1955-05-08', 12.0, 1.0, 29340.0, 19500.0, 83.0, 150.0, 0.0],
+     [202.0, 'm', '1963-03-17', 15.0, 1.0, 39600.0, 16500.0, 83.0, 47.0, 0.0],
+     [203.0, 'm', '1964-03-17', 12.0, 1.0, 29100.0, 15000.0, 83.0, 50.0, 0.0],
+     [204.0, 'm', '1960-10-21', 15.0, 1.0, 33150.0, 16500.0, 83.0, 69.0, 0.0],
+     [205.0, 'm', '1944-06-22', 16.0, 3.0, 66750.0, 52500.0, 83.0, 258.0, 0.0],
+     [206.0, 'm', '1943-05-22', 12.0, 2.0, 33750.0, 15000.0, 83.0, 284.0, 0.0],
+     [207.0, 'm', '1959-02-15', 15.0, 1.0, 27300.0, 17250.0, 83.0, 91.0, 0.0],
+     [208.0, 'f', '1968-11-28', 12.0, 1.0, 24000.0, 11250.0, 83.0, 16.0, 0.0],
+     [209.0, 'f', '1934-01-14', 8.0, 1.0, 19800.0, 10200.0, 83.0, 75.0, 0.0],
+     [210.0, 'm', '1949-05-04', 15.0, 1.0, 30600.0, 16500.0, 83.0, 216.0, 1.0],
+     [211.0, 'm', '1950-11-08', 15.0, 1.0, 28950.0, 15000.0, 83.0, 108.0, 1.0],
+     [212.0, 'm', '1965-05-14', 15.0, 1.0, 38400.0, 16500.0, 83.0, 64.0, 1.0],
+     [213.0, 'm', '1945-10-20', 8.0, 2.0, 30750.0, 15000.0, 83.0, 302.0, 1.0],
+     [214.0, 'f', '1968-09-13', 12.0, 1.0, 20400.0, 10950.0, 83.0, 9.0, 1.0],
+     [215.0, 'f', '1968-09-15', 12.0, 1.0, 19200.0, 11100.0, 83.0, 7.0, 1.0],
+     [216.0, 'm', '1964-05-16', 15.0, 1.0, 30150.0, 15750.0, 82.0, 72.0, 0.0],
+     [217.0, 'm', '1949-03-15', 16.0, 1.0, 34620.0, 27750.0, 82.0, 149.0, 0.0],
+     [218.0, 'm', '1964-03-21', 15.0, 1.0, 80000.0, 15750.0, 82.0, 34.0, 0.0],
+     [219.0, 'm', '1963-02-02', 12.0, 1.0, 25350.0, 15000.0, 82.0, 32.0, 0.0],
+     [220.0, 'm', '1963-08-17', 12.0, 1.0, 29850.0, 15750.0, 82.0, 85.0, 0.0],
+     [221.0, 'f', '1947-05-22', 12.0, 1.0, 24000.0, 13800.0, 82.0, 97.0, 0.0],
+     [222.0, 'f', '1935-09-15', 15.0, 1.0, 27750.0, 19500.0, 82.0, 265.0, 0.0],
+     [223.0, 'f', '1942-03-14', 8.0, 1.0, 22350.0, 10200.0, 82.0, 48.0, 0.0],
+     [224.0, 'f', '1934-11-20', 12.0, 1.0, 16200.0, 10200.0, 82.0, 0.0, 0.0],
+     [225.0, 'f', '1967-10-13', 15.0, 1.0, 21900.0, 12750.0, 82.0, 0.0, 0.0],
+     [226.0, 'f', '1964-06-21', 16.0, 1.0, 23250.0, 15750.0, 82.0, 4.0, 0.0],
+     [227.0, 'f', '1965-07-17', 12.0, 1.0, 33900.0, 12000.0, 82.0, 11.0, 0.0],
+     [228.0, 'f', '1963-09-21', 15.0, 1.0, 25650.0, 14250.0, 82.0, 51.0, 0.0],
+     [229.0, 'f', '1940-08-21', 12.0, 1.0, 17250.0, 10200.0, 82.0, 358.0, 0.0],
+     [230.0, 'm', '1934-02-04', 15.0, 1.0, 22500.0, 15000.0, 82.0, 371.0, 1.0],
+     [231.0, 'm', '1965-01-09', 16.0, 3.0, 40200.0, 21000.0, 81.0, 3.0, 0.0],
+     [232.0, 'm', '1963-09-13', 19.0, 3.0, 55500.0, 33750.0, 81.0, 62.0, 0.0],
+     [233.0, 'm', '1963-07-21', 15.0, 1.0, 26550.0, 15000.0, 81.0, 52.0, 0.0],
+     [234.0, 'm', '1960-11-12', 15.0, 1.0, 50550.0, 19500.0, 81.0, 44.0, 0.0],
+     [235.0, 'm', '1962-09-11', 19.0, 3.0, 75000.0, 31500.0, 81.0, 13.0, 0.0],
+     [236.0, 'f', '1969-05-02', 8.0, 1.0, 27450.0, 12000.0, 81.0, 9.0, 0.0],
+     [237.0, 'f', '1969-06-04', 12.0, 1.0, 22650.0, 11250.0, 81.0, 0.0, 0.0],
+     [238.0, 'f', '1969-06-15', 12.0, 1.0, 27300.0, 11250.0, 81.0, 5.0, 0.0],
+     [239.0, 'f', '1969-09-14', 12.0, 1.0, 27750.0, 11225.0, 81.0, 5.0, 0.0],
+     [240.0, 'f', '1961-06-15', 16.0, 3.0, 54375.0, 18750.0, 81.0, 81.0, 0.0],
+     [241.0, 'f', '1936-08-27', 8.0, 1.0, 17400.0, 10200.0, 81.0, 390.0, 0.0],
+     [242.0, 'f', '1967-11-03', 12.0, 1.0, 40800.0, 18000.0, 81.0, 4.0, 0.0],
+     [243.0, 'f', '1969-02-10', 12.0, 1.0, 23100.0, 10950.0, 81.0, 0.0, 0.0],
+     [244.0, 'f', '1969-09-15', 8.0, 1.0, 22500.0, 10950.0, 81.0, 5.0, 0.0],
+     [245.0, 'f', '1969-03-16', 12.0, 1.0, 26700.0, 11550.0, 81.0, 18.0, 0.0],
+     [246.0, 'f', '1968-01-14', 12.0, 1.0, 24900.0, 11250.0, 81.0, 0.0, 0.0],
+     [247.0, 'f', '1968-05-13', 12.0, 1.0, 19650.0, 10950.0, 81.0, 11.0, 0.0],
+     [248.0, 'f', '1969-04-09', 12.0, 1.0, 22050.0, 10950.0, 81.0, 9.0, 0.0],
+     [249.0, 'f', '1969-05-09', 12.0, 1.0, 25500.0, 12000.0, 81.0, 11.0, 0.0],
+     [250.0, 'f', '1966-10-10', 15.0, 1.0, 28200.0, 12750.0, 81.0, 19.0, 0.0],
+     [251.0, 'f', '1969-01-19', 12.0, 1.0, 23100.0, 11250.0, 81.0, 13.0, 0.0],
+     [252.0, 'm', '1969-09-18', 12.0, 1.0, 25500.0, 11400.0, 81.0, 9.0, 1.0],
+     [253.0, 'f', '1942-02-21', 8.0, 1.0, 17100.0, 10200.0, 81.0, 0.0, 1.0],
+     [254.0, 'm', '1964-02-08', 18.0, 3.0, 68125.0, 32490.0, 80.0, 29.0, 0.0],
+     [255.0, 'm', '1932-08-15', 12.0, 2.0, 30600.0, 15750.0, 80.0, 460.0, 0.0],
+     [256.0, 'm', '1948-01-03', 19.0, 3.0, 52125.0, 27480.0, 80.0, 221.0, 0.0],
+     [257.0, 'm', '1951-09-24', 19.0, 3.0, 61875.0, 36750.0, 80.0, 199.0, 0.0],
+     [258.0, 'm', '1969-03-09', 8.0, 1.0, 21300.0, 11550.0, 80.0, 24.0, 0.0],
+     [259.0, 'f', '1969-03-15', 12.0, 1.0, 19650.0, 11250.0, 80.0, 5.0, 0.0],
+     [260.0, 'f', '1969-02-20', 12.0, 1.0, 22350.0, 11250.0, 80.0, 5.0, 0.0],
+     [261.0, 'f', '1969-03-27', 12.0, 1.0, 23400.0, 11250.0, 80.0, 18.0, 0.0],
+     [262.0, 'f', '1968-06-20', 12.0, 1.0, 24300.0, 10950.0, 80.0, 8.0, 0.0],
+     [263.0, 'f', '1968-10-13', 12.0, 1.0, 28500.0, 11250.0, 80.0, 4.0, 0.0],
+     [264.0, 'f', '1969-01-16', 12.0, 1.0, 19950.0, 11250.0, 80.0, 8.0, 0.0],
+     [265.0, 'f', '1969-09-24', 12.0, 1.0, 23400.0, 11250.0, 80.0, 0.0, 0.0],
+     [266.0, 'f', '1963-10-07', 16.0, 1.0, 34500.0, 17250.0, 80.0, 3.0, 0.0],
+     [267.0, 'f', '1969-08-24', 12.0, 1.0, 18150.0, 10950.0, 80.0, 0.0, 0.0],
+     [268.0, 'm', '1936-05-16', 12.0, 1.0, 22350.0, 15000.0, 80.0, 272.0, 1.0],
+     [269.0, 'm', '1966-03-17', 15.0, 1.0, 40200.0, 17250.0, 79.0, 38.0, 0.0],
+     [270.0, 'm', '1947-10-29', 15.0, 1.0, 28650.0, 18000.0, 79.0, 261.0, 0.0],
+     [271.0, 'm', '1963-08-24', 15.0, 1.0, 27750.0, 16500.0, 79.0, 55.0, 0.0],
+     [272.0, 'm', '1964-06-17', 18.0, 1.0, 66875.0, 31980.0, 79.0, 30.0, 0.0],
+     [273.0, 'm', '1939-11-12', 12.0, 2.0, 30000.0, 15750.0, 79.0, 308.0, 0.0],
+     [274.0, 'm', '1964-08-04', 16.0, 3.0, 83750.0, 21750.0, 79.0, 12.0, 0.0],
+     [275.0, 'm', '1963-01-14', 12.0, 1.0, 33900.0, 16500.0, 79.0, 94.0, 0.0],
+     [276.0, 'm', '1965-05-11', 16.0, 3.0, 56500.0, 21000.0, 79.0, 12.0, 0.0],
+     [277.0, 'f', '1965-05-20', 16.0, 3.0, 43000.0, 17490.0, 79.0, 20.0, 0.0],
+     [278.0, 'f', '1943-06-12', 8.0, 1.0, 20850.0, 12000.0, 79.0, 70.0, 0.0],
+     [279.0, 'f', '1969-04-16', 12.0, 1.0, 24450.0, 12000.0, 79.0, 8.0, 0.0],
+     [280.0, 'f', '1969-10-20', 12.0, 1.0, 24750.0, 10950.0, 79.0, 5.0, 0.0],
+     [281.0, 'm', '1945-02-18', 8.0, 2.0, 34500.0, 15750.0, 79.0, 246.0, 1.0],
+     [282.0, 'm', '1963-09-15', 14.0, 1.0, 27900.0, 15000.0, 79.0, 47.0, 1.0],
+     [283.0, 'm', '1963-02-25', 19.0, 3.0, 68125.0, 32010.0, 78.0, 35.0, 0.0],
+     [284.0, 'm', '1961-10-10', 19.0, 3.0, 73500.0, 33000.0, 78.0, 45.0, 0.0],
+     [285.0, 'm', '1930-05-28', 8.0, 2.0, 30750.0, 15750.0, 78.0, 429.0, 0.0],
+     [286.0, 'm', '1958-03-07', 15.0, 3.0, 40050.0, 25500.0, 78.0, 133.0, 0.0],
+     [287.0, 'm', '1965-01-18', 16.0, 1.0, 40350.0, 19500.0, 78.0, 20.0, 0.0],
+     [288.0, 'm', '1955-01-22', 15.0, 3.0, 38700.0, 23730.0, 78.0, 176.0, 0.0],
+     [289.0, 'm', '1964-10-27', 17.0, 3.0, 65000.0, 30750.0, 78.0, 26.0, 0.0],
+     [290.0, 'm', '1954-04-05', 18.0, 3.0, 51450.0, 36240.0, 78.0, 149.0, 0.0],
+     [291.0, 'm', '1934-09-23', 12.0, 2.0, 35250.0, 15750.0, 78.0, 387.0, 0.0],
+     [292.0, 'm', '1963-05-07', 14.0, 1.0, 25950.0, 15000.0, 78.0, 53.0, 0.0],
+     [293.0, 'm', '1965-09-19', 15.0, 1.0, 25050.0, 14250.0, 78.0, 24.0, 0.0],
+     [294.0, 'm', '1968-10-10', 12.0, 1.0, 26700.0, 12750.0, 78.0, 25.0, 0.0],
+     [295.0, 'm', '1932-08-20', 8.0, 1.0, 24000.0, 15750.0, 78.0, 476.0, 0.0],
+     [296.0, 'm', '1964-02-12', 12.0, 1.0, 26850.0, 15000.0, 78.0, 48.0, 0.0],
+     [297.0, 'f', '1942-04-16', 12.0, 1.0, 23400.0, 15300.0, 78.0, 209.0, 0.0],
+     [298.0, 'f', '1966-08-24', 12.0, 1.0, 24600.0, 13500.0, 78.0, 47.0, 0.0],
+     [299.0, 'f', '1965-05-11', 15.0, 1.0, 32550.0, 18000.0, 78.0, 6.0, 0.0],
+     [300.0, 'm', '1960-05-26', 16.0, 1.0, 26550.0, 15000.0, 78.0, 105.0, 1.0],
+     [301.0, 'm', '1968-08-04', 12.0, 1.0, 31500.0, 13500.0, 78.0, 7.0, 1.0],
+     [302.0, 'm', '1939-09-28', 8.0, 1.0, 22350.0, 15000.0, 78.0, 320.0, 1.0],
+     [303.0, 'm', '1938-02-10', 12.0, 2.0, 35250.0, 15750.0, 78.0, 281.0, 1.0],
+     [304.0, 'f', '1945-09-28', 15.0, 1.0, 25800.0, 13500.0, 78.0, 51.0, 1.0],
+     [305.0, 'm', '1941-10-25', 12.0, 2.0, 30750.0, 15750.0, 77.0, 317.0, 0.0],
+     [306.0, 'm', '1966-04-05', 15.0, 1.0, 30750.0, 16500.0, 77.0, 41.0, 0.0],
+     [307.0, 'm', '1945-07-24', 16.0, 3.0, 50000.0, 32490.0, 77.0, 264.0, 0.0],
+     [308.0, 'm', '1963-02-01', 15.0, 1.0, 34500.0, 18000.0, 77.0, 63.0, 0.0],
+     [309.0, 'm', '1964-07-19', 15.0, 1.0, 26250.0, 15750.0, 77.0, 38.0, 0.0],
+     [310.0, 'm', '1964-03-23', 16.0, 1.0, 44875.0, 21240.0, 77.0, 22.0, 0.0],
+     [311.0, 'f', '1951-02-15', 12.0, 1.0, 22500.0, 12000.0, 77.0, 63.0, 0.0],
+     [312.0, 'f', '1963-03-12', 12.0, 1.0, 25650.0, 14250.0, 77.0, 64.0, 0.0],
+     [313.0, 'f', '1969-10-25', 12.0, 1.0, 21300.0, 11250.0, 77.0, 0.0, 0.0],
+     [314.0, 'f', '1966-11-24', 12.0, 1.0, 29850.0, 13500.0, 77.0, 38.0, 0.0],
+     [315.0, 'f', '1969-09-19', 12.0, 1.0, 34500.0, 12150.0, 77.0, 4.0, 0.0],
+     [316.0, 'm', '1960-01-14', 15.0, 1.0, 27750.0, 15000.0, 77.0, 52.0, 1.0],
+     [317.0, 'm', '1969-02-27', 12.0, 1.0, 27750.0, 11550.0, 77.0, 12.0, 1.0],
+     [318.0, 'm', '1961-02-19', 16.0, 3.0, 48750.0, 21990.0, 76.0, 61.0, 0.0],
+     [319.0, 'm', '1966-03-02', 15.0, 1.0, 43410.0, 15750.0, 76.0, 12.0, 0.0],
+     [320.0, 'm', '1936-11-10', 12.0, 1.0, 22050.0, 15000.0, 76.0, 385.0, 0.0],
+     [321.0, 'f', '1953-10-26', 12.0, 1.0, 22050.0, 12000.0, 76.0, 6.0, 0.0],
+     [322.0, 'f', '1938-03-02', 12.0, 1.0, 22500.0, 14250.0, 76.0, 90.0, 0.0],
+     [323.0, 'f', '1967-05-13', 15.0, 1.0, 25500.0, 12000.0, 76.0, 7.0, 0.0],
+     [324.0, 'f', '1966-10-14', 12.0, 1.0, 29160.0, 15000.0, 76.0, 22.0, 0.0],
+     [325.0, 'f', '1934-11-04', 8.0, 1.0, 16800.0, 10200.0, 76.0, 76.0, 0.0],
+     [326.0, 'm', '1958-07-24', 8.0, 2.0, 29550.0, 15750.0, 76.0, 144.0, 1.0],
+     [327.0, 'm', '1965-03-02', 12.0, 1.0, 26700.0, 15750.0, 76.0, 18.0, 1.0],
+     [328.0, 'm', '1952-10-25', 18.0, 3.0, 55000.0, 32490.0, 75.0, 125.0, 0.0],
+     [329.0, 'm', '1958-08-24', 18.0, 3.0, 62500.0, 34980.0, 75.0, 74.0, 0.0],
+     [330.0, 'm', '1959-05-09', 15.0, 1.0, 27300.0, 17250.0, 75.0, 132.0, 0.0],
+     [331.0, 'f', '1942-02-04', 12.0, 1.0, 24450.0, 12000.0, 75.0, 144.0, 0.0],
+     [332.0, 'f', '1964-05-10', 16.0, 1.0, 33000.0, 18000.0, 75.0, 26.0, 0.0],
+     [333.0, 'f', '1965-01-26', 15.0, 1.0, 37050.0, 18000.0, 75.0, 5.0, 0.0],
+     [334.0, 'f', '1966-05-09', 12.0, 1.0, 24450.0, 10950.0, 75.0, 32.0, 1.0],
+     [335.0, 'm', '1930-02-26', 8.0, 2.0, 31950.0, 15750.0, 74.0, 408.0, 0.0],
+     [336.0, 'm', '1964-01-10', 16.0, 3.0, 47250.0, 21240.0, 74.0, 45.0, 0.0],
+     [337.0, 'f', '1970-01-27', 12.0, 1.0, 26100.0, 11550.0, 74.0, 2.0, 0.0],
+     [338.0, 'f', '1938-08-12', 8.0, 1.0, 15900.0, 10200.0, 74.0, 43.0, 0.0],
+     [339.0, 'f', '1942-11-07', 8.0, 1.0, 23700.0, 10650.0, 74.0, 281.0, 0.0],
+     [340.0, 'f', '1934-05-06', 8.0, 1.0, 21750.0, 12450.0, 74.0, 318.0, 0.0],
+     [341.0, 'm', '1945-01-20', 12.0, 3.0, 59400.0, 33750.0, 74.0, 272.0, 1.0],
+     [342.0, 'f', '1948-06-01', 12.0, 1.0, 24450.0, 14250.0, 74.0, 117.0, 1.0],
+     [343.0, 'm', '1953-06-09', 16.0, 3.0, 103500.0, 60000.0, 73.0, 150.0, 0.0],
+     [344.0, 'm', '1963-10-13', 12.0, 1.0, 35700.0, 16500.0, 73.0, 72.0, 0.0],
+     [345.0, 'f', '1969-05-05', 12.0, 1.0, 22200.0, 16500.0, 73.0, 7.0, 0.0],
+     [346.0, 'f', '1968-08-16', 15.0, 1.0, 22950.0, 13950.0, 73.0, 22.0, 0.0],
+     [347.0, 'f', '1944-08-10', 12.0, 1.0, 23100.0, 12000.0, 73.0, 228.0, 0.0],
+     [348.0, 'f', '1962-06-11', 16.0, 3.0, 56750.0, 30000.0, 73.0, 15.0, 0.0],
+     [349.0, 'f', '1938-03-22', 17.0, 1.0, 29100.0, 12750.0, 73.0, 375.0, 0.0],
+     [350.0, 'f', '1939-04-21', 12.0, 1.0, 37650.0, 15750.0, 73.0, 132.0, 0.0],
+     [351.0, 'f', '1966-01-27', 12.0, 1.0, 27900.0, 13500.0, 73.0, 32.0, 0.0],
+     [352.0, 'f', '1933-11-26', 8.0, 1.0, 21150.0, 12000.0, 73.0, 159.0, 0.0],
+     [353.0, 'm', '1955-03-10', 12.0, 2.0, 31200.0, 15750.0, 73.0, 155.0, 1.0],
+     [354.0, 'f', '1946-05-08', 12.0, 1.0, 20550.0, 11250.0, 73.0, 154.0, 1.0],
+     [355.0, 'm', '1961-05-19', 15.0, 1.0, 25950.0, 17250.0, 72.0, 83.0, 0.0],
+     [356.0, 'm', '1965-11-10', 15.0, 1.0, 28350.0, 15000.0, 72.0, 48.0, 0.0],
+     [357.0, 'f', '1932-01-18', 8.0, 1.0, 17700.0, 10200.0, 72.0, 184.0, 0.0],
+     [358.0, 'f', '1944-04-11', 15.0, 1.0, 23550.0, 13500.0, 72.0, 49.0, 0.0],
+     [359.0, 'f', '1941-06-12', 12.0, 1.0, 19950.0, 10200.0, 72.0, 56.0, 0.0],
+     [360.0, 'f', '1968-08-11', 12.0, 1.0, 29400.0, 15300.0, 72.0, 30.0, 0.0],
+     [361.0, 'f', '1966-06-09', 12.0, 1.0, 28800.0, 13950.0, 72.0, 18.0, 0.0],
+     [362.0, 'f', '1937-04-08', 8.0, 1.0, 16950.0, 10200.0, 72.0, 319.0, 0.0],
+     [363.0, 'm', '1954-06-03', 16.0, 1.0, 35700.0, 18000.0, 72.0, 138.0, 1.0],
+     [364.0, 'f', '1947-03-26', 12.0, 1.0, 17400.0, 10200.0, 72.0, 116.0, 1.0],
+     [365.0, 'f', '1948-10-16', 8.0, 1.0, 21450.0, 10200.0, 72.0, 194.0, 1.0],
+     [366.0, 'f', '1961-03-21', 12.0, 1.0, 24750.0, 12000.0, 72.0, 68.0, 1.0],
+     [367.0, 'f', '1942-05-22', 12.0, 1.0, 16950.0, 10200.0, 72.0, 271.0, 1.0],
+     [368.0, 'f', '1943-07-20', 12.0, 1.0, 26100.0, 13500.0, 72.0, 169.0, 1.0],
+     [369.0, 'm', '1967-11-14', 14.0, 1.0, 28050.0, 15000.0, 71.0, 15.0, 0.0],
+     [370.0, 'f', '1963-01-20', 16.0, 1.0, 36600.0, 18000.0, 71.0, 12.0, 0.0],
+     [371.0, 'f', '1966-04-05', 16.0, 3.0, 58125.0, 18000.0, 71.0, 11.0, 0.0],
+     [372.0, 'm', '1935-08-22', 15.0, 1.0, 21300.0, 15750.0, 70.0, 372.0, 0.0],
+     [373.0, 'm', '1949-10-29', 12.0, 1.0, 22500.0, 16500.0, 70.0, 216.0, 0.0],
+     [374.0, 'm', '1967-07-26', 15.0, 1.0, 29400.0, 15750.0, 70.0, 15.0, 0.0],
+     [375.0, 'm', '1966-10-08', 12.0, 1.0, 27450.0, 14700.0, 70.0, 41.0, 0.0],
+     [376.0, 'm', '1964-10-09', 15.0, 1.0, 29850.0, 15750.0, 70.0, 48.0, 0.0],
+     [377.0, 'm', '1965-11-29', 15.0, 1.0, 25350.0, 15750.0, 70.0, 56.0, 0.0],
+     [378.0, 'f', '1930-09-21', 8.0, 1.0, 15750.0, 10200.0, 70.0, 275.0, 0.0],
+     [379.0, 'f', '1938-05-12', 8.0, 1.0, 19650.0, 13050.0, 70.0, 102.0, 0.0],
+     [380.0, 'f', '1941-02-22', 12.0, 1.0, 21000.0, 13500.0, 70.0, 82.0, 0.0],
+     [381.0, 'm', '1946-07-15', 17.0, 1.0, 27000.0, 18000.0, 70.0, 192.0, 1.0],
+     [382.0, 'm', '1959-10-20', 12.0, 1.0, 24000.0, 15750.0, 70.0, 120.0, 1.0],
+     [383.0, 'm', '1961-06-03', 17.0, 3.0, 78500.0, 28740.0, 70.0, 67.0, 1.0],
+     [384.0, 'f', '1955-11-11', 12.0, 1.0, 20850.0, 13050.0, 70.0, 127.0, 1.0],
+     [385.0, 'm', '1930-10-01', 12.0, 2.0, 30000.0, 15750.0, 69.0, 348.0, 0.0],
+     [386.0, 'm', '1934-08-18', 8.0, 2.0, 28500.0, 15750.0, 69.0, 174.0, 0.0],
+     [387.0, 'm', '1965-02-03', 19.0, 3.0, 65000.0, 31980.0, 69.0, 74.0, 0.0],
+     [388.0, 'm', '1959-01-02', 14.0, 1.0, 30150.0, 16500.0, 69.0, 110.0, 0.0],
+     [389.0, 'm', '1959-04-15', 19.0, 3.0, 66875.0, 32490.0, 69.0, 81.0, 0.0],
+     [390.0, 'f', '1968-11-09', 15.0, 1.0, 24150.0, 13500.0, 69.0, 7.0, 0.0],
+     [391.0, 'f', '1969-01-12', 12.0, 1.0, 24450.0, 12450.0, 69.0, 12.0, 0.0],
+     [392.0, 'f', '1970-05-12', 12.0, 1.0, 21600.0, 12000.0, 69.0, 0.0, 0.0],
+     [393.0, 'f', '1969-06-24', 12.0, 1.0, 27900.0, 12450.0, 69.0, 0.0, 0.0],
+     [394.0, 'f', '1970-02-04', 8.0, 1.0, 29100.0, 12450.0, 69.0, 17.0, 0.0],
+     [395.0, 'f', '1970-03-09', 12.0, 1.0, 22650.0, 11250.0, 69.0, 2.0, 0.0],
+     [396.0, 'f', '1970-08-17', 12.0, 1.0, 20850.0, 11250.0, 69.0, 0.0, 0.0],
+     [397.0, 'f', '1970-01-17', 12.0, 1.0, 22950.0, 12300.0, 69.0, 5.0, 0.0],
+     [398.0, 'f', '1970-11-21', 12.0, 1.0, 30600.0, 12450.0, 69.0, 5.0, 0.0],
+     [399.0, 'f', '1970-02-06', 12.0, 1.0, 20400.0, 11250.0, 69.0, 0.0, 0.0],
+     [400.0, 'f', '1969-08-06', 12.0, 1.0, 23850.0, 12750.0, 69.0, 20.0, 0.0],
+     [401.0, 'f', '1970-03-14', 12.0, 1.0, 22800.0, 11250.0, 69.0, 0.0, 0.0],
+     [402.0, 'f', '1970-02-07', 12.0, 1.0, 20700.0, 11250.0, 69.0, 2.0, 0.0],
+     [403.0, 'f', '1970-04-28', 12.0, 1.0, 21300.0, 11250.0, 69.0, 3.0, 1.0],
+     [404.0, 'f', '1953-05-01', 12.0, 1.0, 24300.0, 15000.0, 69.0, 121.0, 1.0],
+     [405.0, 'f', '1944-07-12', 12.0, 1.0, 19650.0, 13950.0, 69.0, 133.0, 1.0],
+     [406.0, 'm', '1965-10-05', 17.0, 3.0, 60000.0, 32490.0, 68.0, 17.0, 0.0],
+     [407.0, 'm', '1965-09-06', 15.0, 1.0, 30300.0, 15750.0, 68.0, 55.0, 0.0],
+     [408.0, 'm', '1964-02-12', 19.0, 3.0, 61250.0, 33000.0, 68.0, 9.0, 0.0],
+     [409.0, 'm', '1962-11-21', 19.0, 1.0, 36000.0, 19500.0, 68.0, 21.0, 0.0],
+     [410.0, 'f', '1942-01-09', 8.0, 1.0, 25200.0, 18750.0, 68.0, 344.0, 0.0],
+     [411.0, 'f', '1931-08-21', 12.0, 1.0, 16200.0, 10200.0, 68.0, 180.0, 0.0],
+     [412.0, 'f', '1970-06-16', 12.0, 1.0, 22800.0, 11250.0, 68.0, 2.0, 0.0],
+     [413.0, 'f', '1966-03-13', 16.0, 3.0, 43500.0, 19500.0, 68.0, 11.0, 0.0],
+     [414.0, 'm', '1961-01-08', 8.0, 2.0, 30300.0, 15750.0, 68.0, 155.0, 1.0],
+     [415.0, 'm', '1963-05-02', 15.0, 1.0, 31950.0, 15750.0, 68.0, 70.0, 1.0],
+     [416.0, 'm', '1965-01-16', 15.0, 1.0, 35250.0, 13500.0, 67.0, 6.0, 0.0],
+     [417.0, 'm', '1967-07-22', 15.0, 1.0, 37800.0, 15000.0, 67.0, 36.0, 0.0],
+     [418.0, 'm', '1965-06-05', 15.0, 1.0, 31200.0, 15750.0, 67.0, 46.0, 0.0],
+     [419.0, 'm', '1964-10-20', 15.0, 1.0, 29400.0, 16500.0, 67.0, 68.0, 0.0],
+     [420.0, 'm', '1957-07-16', 19.0, 3.0, 70000.0, 35040.0, 67.0, 75.0, 0.0],
+     [421.0, 'm', '1961-11-01', 15.0, 1.0, 33900.0, 15750.0, 67.0, 96.0, 0.0],
+     [422.0, 'm', '1963-07-20', 15.0, 1.0, 27150.0, 16500.0, 67.0, 78.0, 0.0],
+     [423.0, 'f', '1936-04-26', 12.0, 1.0, 22200.0, 13800.0, 67.0, 196.0, 0.0],
+     [424.0, 'f', '1966-07-06', 15.0, 1.0, 31350.0, 11100.0, 67.0, 47.0, 0.0],
+     [425.0, 'f', '1942-01-26', 12.0, 1.0, 20850.0, 13500.0, 67.0, 181.0, 0.0],
+     [426.0, 'm', '1952-10-27', 16.0, 1.0, 33300.0, 17490.0, 67.0, 120.0, 1.0],
+     [427.0, 'm', '1942-04-21', 8.0, 1.0, 26250.0, 16050.0, 67.0, 97.0, 1.0],
+     [428.0, 'm', '1964-02-28', 15.0, 1.0, 31950.0, 15750.0, 67.0, 58.0, 1.0],
+     [429.0, 'm', '1946-08-13', 8.0, 2.0, 30000.0, 15750.0, 67.0, 305.0, 1.0],
+     [430.0, 'm', '1956-04-29', 19.0, 3.0, 66250.0, 34980.0, 67.0, 99.0, 1.0],
+     [431.0, 'm', '1959-01-15', 18.0, 3.0, 86250.0, 45000.0, 66.0, 50.0, 0.0],
+     [432.0, 'm', '1964-03-12', 12.0, 1.0, 30750.0, 15000.0, 66.0, 56.0, 0.0],
+     [433.0, 'm', '1966-11-15', 12.0, 1.0, 33540.0, 15750.0, 66.0, 47.0, 0.0],
+     [434.0, 'm', None, 16.0, 1.0, 34950.0, 20250.0, 66.0, 55.0, 0.0],
+     [435.0, 'm', '1964-05-24', 15.0, 1.0, 40350.0, 16500.0, 66.0, 80.0, 0.0],
+     [436.0, 'm', '1965-05-27', 12.0, 1.0, 30270.0, 15750.0, 66.0, 80.0, 0.0],
+     [437.0, 'm', '1933-09-04', 8.0, 1.0, 26250.0, 16050.0, 66.0, 264.0, 0.0],
+     [438.0, 'm', '1964-10-11', 15.0, 1.0, 32400.0, 15000.0, 66.0, 64.0, 0.0],
+     [439.0, 'f', '1970-06-25', 12.0, 1.0, 20400.0, 11250.0, 66.0, 0.0, 0.0],
+     [440.0, 'f', '1947-11-10', 8.0, 1.0, 24150.0, 12750.0, 66.0, 96.0, 0.0],
+     [441.0, 'f', '1949-08-02', 15.0, 1.0, 23850.0, 13500.0, 66.0, 122.0, 0.0],
+     [442.0, 'f', '1968-09-18', 12.0, 1.0, 29700.0, 13500.0, 66.0, 26.0, 0.0],
+     [443.0, 'f', '1929-02-10', 8.0, 1.0, 21600.0, 13500.0, 66.0, 228.0, 0.0],
+     [444.0, 'f', '1961-09-16', 12.0, 1.0, 24450.0, 15750.0, 66.0, 87.0, 0.0],
+     [445.0, 'm', '1963-08-04', 15.0, 1.0, 28050.0, 16500.0, 66.0, 84.0, 1.0],
+     [446.0, 'm', '1958-08-03', 16.0, 3.0, 100000.0, 44100.0, 66.0, 128.0, 1.0],
+     [447.0, 'm', '1961-07-02', 15.0, 1.0, 49000.0, 20550.0, 66.0, 86.0, 1.0],
+     [448.0, 'f', '1933-06-05', 12.0, 1.0, 16350.0, 10200.0, 66.0, 163.0, 1.0],
+     [449.0, 'm', '1966-01-02', 16.0, 3.0, 70000.0, 21750.0, 65.0, 19.0, 0.0],
+     [450.0, 'm', '1954-07-21', 19.0, 3.0, 55000.0, 34980.0, 65.0, 129.0, 0.0],
+     [451.0, 'm', '1969-07-19', 15.0, 1.0, 28500.0, 14250.0, 65.0, 20.0, 0.0],
+     [452.0, 'm', '1953-08-13', 12.0, 1.0, 28800.0, 18000.0, 65.0, 210.0, 0.0],
+     [453.0, 'm', '1930-08-07', 15.0, 1.0, 24450.0, 15750.0, 65.0, 338.0, 0.0],
+     [454.0, 'm', '1965-07-28', 19.0, 3.0, 90625.0, 31250.0, 65.0, 18.0, 0.0],
+     [455.0, 'm', '1964-01-17', 16.0, 3.0, 43650.0, 19500.0, 65.0, 19.0, 0.0],
+     [456.0, 'm', '1959-10-17', 19.0, 3.0, 75000.0, 42510.0, 65.0, 54.0, 0.0],
+     [457.0, 'm', '1968-05-27', 15.0, 1.0, 31650.0, 14250.0, 65.0, 10.0, 0.0],
+     [458.0, 'm', '1965-07-06', 19.0, 3.0, 61875.0, 28740.0, 65.0, 26.0, 0.0],
+     [459.0, 'f', '1971-02-10', 12.0, 1.0, 21750.0, 11250.0, 65.0, 0.0, 0.0],
+     [460.0, 'f', '1969-08-12', 12.0, 1.0, 22500.0, 12750.0, 65.0, 24.0, 0.0],
+     [461.0, 'f', '1943-11-08', 8.0, 1.0, 21600.0, 13500.0, 65.0, 173.0, 0.0],
+     [462.0, 'f', '1963-10-18', 16.0, 3.0, 34410.0, 19500.0, 65.0, 79.0, 0.0],
+     [463.0, 'f', '1934-10-15', 15.0, 1.0, 20700.0, 14250.0, 65.0, 241.0, 0.0],
+     [464.0, 'm', '1962-03-20', 19.0, 3.0, 47550.0, 33000.0, 64.0, 27.0, 0.0],
+     [465.0, 'm', '1962-07-20', 12.0, 1.0, 33900.0, 16500.0, 64.0, 106.0, 0.0],
+     [466.0, 'f', '1948-06-15', 12.0, 1.0, 23400.0, 13500.0, 64.0, 198.0, 0.0],
+     [467.0, 'f', '1967-08-18', 16.0, 1.0, 32850.0, 19500.0, 64.0, 20.0, 0.0],
+     [468.0, 'f', '1965-11-28', 16.0, 3.0, 55750.0, 19980.0, 64.0, 36.0, 0.0],
+     [469.0, 'f', '1964-06-01', 15.0, 1.0, 25200.0, 13950.0, 64.0, 57.0, 0.0],
+     [470.0, 'm', '1964-01-22', 12.0, 1.0, 26250.0, 15750.0, 64.0, 69.0, 1.0],
+     [471.0, 'm', '1966-08-03', 15.0, 1.0, 26400.0, 15750.0, 64.0, 32.0, 1.0],
+     [472.0, 'm', '1966-02-21', 15.0, 1.0, 39150.0, 15750.0, 63.0, 46.0, 0.0],
+     [473.0, 'f', '1937-11-25', 12.0, 1.0, 21450.0, 12750.0, 63.0, 139.0, 0.0],
+     [474.0, 'f', '1968-11-05', 12.0, 1.0, 29400.0, 14250.0, 63.0, 9.0, 0.0]]
+
+class test_SavReader_typical_use(unittest.TestCase):
+    """ Read a file, typical use"""
+
+    def test_SavReader_typical(self):
+
+        savFileName = "../test_data/Employee data.sav"
+        records_got = []
+        with SavReader(savFileName, returnHeader=True) as reader:
+            for record in reader:
+                records_got.append(record)
+
+        self.assertEqual(records_expected, records_got)
+
+if __name__ == "__main__":
+    unittest.main()

savReaderWriter/unit_tests/test_SavWriter_typical_use.py

+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+##############################################################################
+## Write a file, typical use
+##############################################################################
+
+import unittest
+import os
+import tempfile
+from savReaderWriter import *
+
+class test_SavWriter_typical_use(unittest.TestCase):
+    """ Write a file, typical use"""
+
+    def setUp(self):
+        self.savFileName =  os.path.join(tempfile.gettempdir(), "test.sav")
+        varNames = ['var1', 'v2', 'v3', 'bdate']
+        varTypes = {'var1': 6, 'v2': 0, 'v3': 0, 'bdate': 10}
+        self.args = (self.savFileName, varNames, varTypes)
+
+    def test_SavWriter_typical(self):
+        records_in = [['Test1', 1, 1, '2010-08-11'],
+                      ['Test2', 2, 1, '1910-01-12']]
+        with SavWriter(*self.args) as writer:
+            for record in records_in:
+                writer.writerow(record)
+
+        with SavReader(self.savFileName) as reader:
+            records_out = [line for line in iter(reader)]
+
+        self.assertEqual(records_in, records_out)
+
+    def tearDown(self):
+        os.remove(self.savFileName)
+
+if __name__ == "__main__":
+    unittest.main()
       )
 
 # ugly, but it works
-for f in ['README','VERSION', 'TODO', 'COPYRIGHT']:
-    p = os.path.dirname(__file__)
-    src = os.path.join(p, f)
-    dst = os.path.join(p, "savReaderWriter", f)
-    shutil.copy(src, dst)
+# for f in ['README','VERSION', 'TODO', 'COPYRIGHT']:
+#     p = os.path.dirname(__file__)
+#     src = os.path.join(p, f)
+#     dst = os.path.join(p, "savReaderWriter", f)
+#     shutil.copy(src, dst)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.