Git Product home page Git Product logo

carwatch-python's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

42mst

carwatch-python's Issues

add leading zeroes in participant ID

instead of _ which results, for example, in "CARWatch_1", I'd recommend adding leading zeroes to the participant IDs (e.g., "CARWatch_001"). The number of leading zeroes should be chosen according to the total number of participants (1-99 => 2 digits, 100 - 999 => 3 digits) etc.

Maybe also check if the layout if adding leading zeroes would break things (also together with #2 )? otherwise, the participant IDs could also be in a separate line, between study name and saliva_id

Register CLI as script entrypoint

At the moment, the only way to use the cli is to clone the repo and install it as developer.

However, in Python there is an easier way. You can register a script as a script entrypoint (https://python-poetry.org/docs/pyproject/#scripts)

This way, the script will be installed as global binary, when the package is installed.
I.e. after doing pip install carwatch you would be able to just call generate_labels from anywhere in the commandline.

Note, probably you should rename the script entrypoint to carwatch_generate_labels to avoid naming conflicts)

Diable manual scanning mode not working

  • In our testcases the field "Enable manual scanning mode (allows to manually scan barcodes apart from being prompted by the CARWatch application)" is not working

  • We can still scan barcodes without the app promting

  • You can select the option in the app to enter barcode manully, mybe by NOT setting the checkbox this option shouldn´t be available

  • check brand and version used below:
    carwatch_triass02_vp01_20231127.csv

Add new option: Specify Saliva ID prefix

so far, the saliva ids always have the prefix "S" (for saliva). it would be cool if this would also be configurable so that we can also generate labels or barcodes for other biomarkers, e.g., blood (=> prefix "B")

no newline between study-name and saliva-sample-id?

when using the options below, no newline between study name and saliva sample ID is printed in the labels:

Study name: DPL_Sleep
Duration of study [days]: 2
Number of saliva samples [per day]: 3
Read subject IDs from file? [y/n]: n
Number of participants: 30
Add prefix to participant number (e.g., 'VP_')? [y/n]: y
Subject prefix [VP_]: 
Evening salivette? [y/n]: n
Add study name and participant number to label? [y/n]: y
Add barcode to label? [y/n]: n
Output directory for labels [.]: 
Name of label file [barcodes]: barcodes_dpl_sleep
Use custom layout instead of Avery Zweckform J4791? [y/n]: n

add option to add prefix to participant ID

the option could, for example, look like this:

Add prefix to participant number (e.g., "VP_") [default: None]:

Important: Check if this breaks the layout and/or if it's better to put the participant ID in a separate line?

Unix-Timestamp to actual date

  • Could you transform the unix-timestamp to the actual date for the log file?
  • Or add a seperate row that?
  • Furthermore it´s not tracking the right timestamp:
    • actual time taken: 10:18 AM
    • log data: {"id":32768,"timestamp":1701078614298} which translates into 10:18 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.