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

fix: handle units and descriptions for empty tags #162

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

AdamZalewski
Copy link
Contributor

@AdamZalewski AdamZalewski commented Feb 20, 2023

closes #120
closes #29

Tested - passes everything except ODBC on my side. Should fix the two issues referenced.

@einarsi einarsi changed the title feat: Error handle units and descriptions for empty tags fix: handle units and descriptions for empty tags Feb 24, 2023
units[tag] = unit
except:
if self.search(tag) == []: # check for nonexisting string
print("Tag not found: " + str(tag))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should really have used a logger, but since we haven't configured one I suggest to do:
warnings.warn(f"Tag not found: {tag}")
Same for get_description()

@einarsi
Copy link
Collaborator

einarsi commented Feb 24, 2023

What is this?
image

@asmfstatoil
Copy link
Collaborator

@mortendaehli Could you lift this issue on the priorities list?

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