Skip to content

Fix TypeError: loadtxt() got an unexpected keyword argument 'headers' in src/diffpy/pdfmorph/tools.py #144

Description

@bobleesj

Problem

FAILED tests/test_pdfmorphapp.py::TestApp::test_parser_systemexits - TypeError: loadtxt() got an unexpected keyword argument 'headers'
FAILED tests/test_pdfmorphapp.py::TestApp::test_morphsequence - TypeError: loadtxt() got an unexpected keyword argument 'headers'
FAILED tests/test_pdfmorphio.py::TestApp::test_morph_outputs - TypeError: loadtxt() got an unexpected keyword argument 'headers'
FAILED tests/test_tools.py::TestTools::test_field_sort - TypeError: loadtxt() got an unexpected keyword argument 'headers'

Found in

tests/test_tools.py:80: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/diffpy/pdfmorph/tools.py:203: in field_sort
    fhd = parsers.loadData(path, headers=True)
_ _ _ _ _ _

Proposed solution

Investigate the problem a bit more and update here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions