Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail with "ValueError: Invalid magic for .mpr file: b'version https://git-lfs.github.com/spec/v1\noid sha25'" #79

Open
ilka-schulz opened this issue Nov 17, 2022 · 1 comment

Comments

@ilka-schulz
Copy link

When I run pytest from the project root directory, 18 test fail, all with the same error message:

____________________________________________________________ test_MPR6_matches_MPT6 _____________________________________________________________

testdata_dir = '/home/user/galvani/tests/testdata'

    def test_MPR6_matches_MPT6(testdata_dir):
>       mpr = MPRfile(os.path.join(testdata_dir, 'bio_logic6.mpr'))

tests/test_BioLogic.py:213: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <galvani.BioLogic.MPRfile object at 0x75c16c88b430>, file_or_path = '/home/user/galvani/tests/testdata/bio_logic6.mpr'

    def __init__(self, file_or_path):
        self.loop_index = None
        if isinstance(file_or_path, str):
            mpr_file = open(file_or_path, 'rb')
        else:
            mpr_file = file_or_path
        magic = mpr_file.read(len(MPR_MAGIC))
        if magic != MPR_MAGIC:
>           raise ValueError('Invalid magic for .mpr file: %s' % magic)
E           ValueError: Invalid magic for .mpr file: b'version https://git-lfs.github.com/spec/v1\noid sha25'

galvani/BioLogic.py:382: ValueError
@chatcannon
Copy link
Collaborator

Install git-lfs and clone the repository again. git-lfs will download the data files and then the tests should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants