Skip to content

Commit

Permalink
Initialize adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonski committed Nov 11, 2024
1 parent 7304e6a commit e87d551
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/senaite/astm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

# global adapter registry
adapter_registry = Components()

# Make sure adapters are initialized *after* the adapter registry is in place!
from senaite.astm import adapters # noqa: F401,E402
2 changes: 1 addition & 1 deletion src/senaite/astm/adapters/spotchem/se1520.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
rb"\x02" # Start of the message
rb"(\d{2}/\d{2}/\d{2})\s+" # Date in YY/MM/DD format
rb"(\d{2}:\d{2})\s+" # Time in HH:MM format
rb"ID#\s*([A-Z0-9]+)\s+" # Sample ID prefixed by "ID#"
rb"ID#\s*([A-Z0-9\-_]+)\s+" # Sample ID prefixed by "ID#"
rb"\[(.*?)\]\s+" # Sample type in square brackets
rb"Na\s+([\d.]+)\s+(mmol/L)\s+" # Na result
rb"K\s+([\d.]+)\s+(mmol/L)\s+" # K result
Expand Down

0 comments on commit e87d551

Please sign in to comment.