Skip to content

Fix error while reading aerosol flow rate in rawcst files.

Description

Paolo's report :

En gros le problème c'est la lecture du débit Qa: si le code ne voit pas "1" dans la colonne correspondante au débit du CPC (1 lpm est le standard, je ne peux pas utiliser une commande type pour le Sheath, "-q5.0") il n'inverse pas les données (il affiche: Qa=0 et Qsh=0).

Je crois qu'il s'agit d'un problème de format des nombres à lire dans le fichier RAW: si j'ai un debit Qa= 0,3 lpm (type MAGICcpc) je crois que le code lit le premier chiffre du debit et pas les chiffres décimales...donc 0,3 devient 0 et le code n'inverse pas.

Expected result

  • Qsh must be independent from Qa.
  • Qa and Qsh may be decimal numbers.

Steps to reproduce

  1. Invert a file with the following command line :
$ szinv/szinv -i ../libszdist/files/rawcst/gitlab-issue-2.raw -t rawcst -c0 -q3.0 -l8.6 -z xray -o /tmp/out.csv
  1. Check flow rates in the output file.

Definition of done

The bug can be closed if all the following items have been completed and checked in the merge request :

  • Qa can be set to any value in the range 0.1..10.0l/min and is read properly.
  • Qsh can be set with option -q even if Qa != 1 and Qa < 1.
Edited by David PICARD