Skip to content

Commit

Permalink
Remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferajiang committed Nov 30, 2023
1 parent 6eab644 commit 17cf7ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/miade/annotators.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from .utils.annotatorconfig import AnnotatorConfig

log = logging.getLogger(__name__)
log.setLevel(logging.DEBUG)

# Precompile regular expressions
sent_regex = re.compile(r"[^\s][^\n]+")
Expand Down
10 changes: 5 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,25 +569,25 @@ def test_meds_allergy_note() -> Note:
def test_substance_concepts_with_meta_anns() -> List[Concept]:
return [
Concept(id="226021002", name="Eggs", start=14, end=17, meta_anns=[
MetaAnnotations(name="reactionpos", value=ReactionPos.NOT_REACTION),
MetaAnnotations(name="reaction_pos", value=ReactionPos.NOT_REACTION),
MetaAnnotations(name="category", value=SubstanceCategory.ADVERSE_REACTION),
MetaAnnotations(name="allergy_type", value=AllergyType.INTOLERANCE),
MetaAnnotations(name="severity", value=Severity.MILD),
]),
Concept(id="159002", name="Penicillin", start=64, end=73, meta_anns=[
MetaAnnotations(name="reactionpos", value=ReactionPos.NOT_REACTION),
MetaAnnotations(name="reaction_pos", value=ReactionPos.NOT_REACTION),
MetaAnnotations(name="category", value=SubstanceCategory.ADVERSE_REACTION),
MetaAnnotations(name="allergy_type", value=AllergyType.ALLERGY),
MetaAnnotations(name="severity", value=Severity.MODERATE),
]),
Concept(id="140004", name="Rash", start=24, end=27, meta_anns=[
MetaAnnotations(name="reactionpos", value=ReactionPos.AFTER_SUBSTANCE),
MetaAnnotations(name="reaction_pos", value=ReactionPos.AFTER_SUBSTANCE),
MetaAnnotations(name="category", value=SubstanceCategory.NOT_SUBSTANCE),
MetaAnnotations(name="allergy_type", value=AllergyType.UNSPECIFIED),
MetaAnnotations(name="severity", value=Severity.UNSPECIFIED),
]),
Concept(id="832007", name="Nausea", start=50, end=55, meta_anns=[
MetaAnnotations(name="reactionpos", value=ReactionPos.BEFORE_SUBSTANCE),
MetaAnnotations(name="reaction_pos", value=ReactionPos.BEFORE_SUBSTANCE),
MetaAnnotations(name="category", value=SubstanceCategory.ADVERSE_REACTION),
MetaAnnotations(name="allergy_type", value=AllergyType.UNSPECIFIED),
MetaAnnotations(name="severity", value=Severity.UNSPECIFIED),
Expand All @@ -600,7 +600,7 @@ def test_substance_concepts_with_meta_anns() -> List[Concept]:
route=None
),
meta_anns=[
MetaAnnotations(name="reactionpos", value=ReactionPos.NOT_REACTION),
MetaAnnotations(name="reaction_pos", value=ReactionPos.NOT_REACTION),
MetaAnnotations(name="category", value=SubstanceCategory.TAKING),
MetaAnnotations(name="allergy_type", value=AllergyType.UNSPECIFIED),
MetaAnnotations(name="severity", value=Severity.UNSPECIFIED),
Expand Down

0 comments on commit 17cf7ed

Please sign in to comment.