windng
Check-in [116dd161d2]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Test_write_wind() broken in dateutil 2.5.0
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:116dd161d24616861ce2bbfb26e1cf8cb89902c8
User & Date: goyo 2016-03-14 20:39:08
Context
2016-03-14
21:10
Changed behavior in dateutil.parser.parse(), read_wind() follows. check-in: 94f1126e27 user: goyo tags: trunk
20:39
Test_write_wind() broken in dateutil 2.5.0 check-in: 116dd161d2 user: goyo tags: trunk
2015-11-24
08:26
Make setup.py work with pip in python2. check-in: 9b2e9b9e05 user: goyo tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/test_io.py.

703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
            [4.24, 4.78, 11.2,  5.20, 0.59],
            [4.02, 5.46, 20.8, 10.35, 0.59],
            [4.25, 6.34, 19.7,  9.43, 0.72],
            [4.74, 5.28, 36.7,  3.90, 0.23],
            [4.09, 4.82, 32.3,  5.11, 0.37],
        ]
        columns = ['speed', 'gust', 'dir', 'std_dir', 'std_speed']
        index = pd.date_range('100730', periods=5, freq='10T')
        df = pd.DataFrame(data=data, index=index, columns=columns)

        buf = StringIO()
        wio.write_wind(df, buf)
        buf.seek(0)
        expected = (
"""       date      time  speed  gust   dir  std_dir  std_speed







|







703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
            [4.24, 4.78, 11.2,  5.20, 0.59],
            [4.02, 5.46, 20.8, 10.35, 0.59],
            [4.25, 6.34, 19.7,  9.43, 0.72],
            [4.74, 5.28, 36.7,  3.90, 0.23],
            [4.09, 4.82, 32.3,  5.11, 0.37],
        ]
        columns = ['speed', 'gust', 'dir', 'std_dir', 'std_speed']
        index = pd.date_range('20100730', periods=5, freq='10T')
        df = pd.DataFrame(data=data, index=index, columns=columns)

        buf = StringIO()
        wio.write_wind(df, buf)
        buf.seek(0)
        expected = (
"""       date      time  speed  gust   dir  std_dir  std_speed