Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI will crash when no space between dosage amount and dosage unit was given #490

Open
keinsell opened this issue Jun 5, 2024 · 1 comment

Comments

@keinsell
Copy link
Owner

keinsell commented Jun 5, 2024

> keinsell@pop-os:~$ neuronek ingestion create --substance-name "caffeine" --route-of-administration "Oral" --dosage "120mg"
thread 'main' panicked at src/ingestion_analyzer.rs:103:67:
called `Result::unwrap()` on an `Err` value: NoSeparator
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

> keinsell@pop-os:~$ neuronek ingestion create --substance-name "caffeine" --route-of-administration "Oral" --dosage "120 mg"
"common"
IngestionAnalysis {
    substance_name: "Caffeine",
    route_of_administration_classification: Oral,
    dosage_analysis: Some(
        DosageAnalysis {
            dosage_classification: Unknown,
        },
    ),
}
Ingestion created with ID: 32
Copy link

linear bot commented Jun 5, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant