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

separator not valid in Field creation #52

Open
bcrickboom opened this issue Dec 31, 2022 · 0 comments
Open

separator not valid in Field creation #52

bcrickboom opened this issue Dec 31, 2022 · 0 comments

Comments

@bcrickboom
Copy link

Hi,
It seems that there is a bug introduced in 0.4.3 version. Indeed, with 0.4.2 version, I can write that:

import hl7
f=hl7.Field("|", ["MSH"])
print(f)
MSH

With version 0.4.3 (and later):

import hl7
f=hl7.Field("|", ["MSH"])
Traceback (most recent call last):
  File "/snap/pycharm-community/312/plugins/python-ce/helpers/pydev/pydevconsole.py", line 364, in runcode
    coro = func()
  File "<input>", line 1, in <module>
  File "/home/bc/Orthanc-Team/python-orthanc-tools/venv3/lib/python3.8/site-packages/hl7/containers.py", line 784, in __init__
    assert not separator or separator == separators[2]
AssertionError

Is it the expected behavior ?

Thanks for your support and your great job!

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

1 participant