globaldothealth / adtl

Another data transformation language
https://adtl.readthedocs.io
MIT License
1 stars 0 forks source link

Allow 'getFloat' to scrape a number from a string with other text #72

Closed pipliggins closed 1 year ago

pipliggins commented 1 year ago

E.g. sometimes scales like sedation scales are filled in as a mix of numbers and '-3 moderate sedation' etc. Want to be able to scrape out the value in these cases.

codecov[bot] commented 1 year ago

Codecov Report

Merging #72 (08e3a2f) into main (b021f53) will increase coverage by 0.05%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
+ Coverage   89.55%   89.61%   +0.05%     
==========================================
  Files           2        2              
  Lines         565      568       +3     
==========================================
+ Hits          506      509       +3     
  Misses         59       59              
Impacted Files Coverage Δ
adtl/transformations.py 100.00% <100.00%> (ø)