Skip to content

Commit

Permalink
remove ingestion analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
keinsell committed Feb 8, 2025
1 parent 214f929 commit 3c5a1e9
Show file tree
Hide file tree
Showing 22 changed files with 454 additions and 779 deletions.
12 changes: 11 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,14 @@ nix build
# Run continuous checks
bacon
```
```

## Not so frequent questions and answers

### Why repository have so many unrelated pull requests?

Welp, there were too many ideas for time I had. I personally dropped project multiple times because was essentially
trying to make it much bigger for a startup point than it should
be. [Github do not allow for deletion of pull requests](https://github.com/orgs/community/discussions/28200#discussioncomment-7359175),
so this mess is eventually supposed to say there - and since there actual stargazers recreation of repository do not
seem to be the best thing to be done.
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ rlg = "0.0.6"
colog = "1.3.0"
pretty_env_logger = "0.5.0"
textplots = "0.8.6"
valuable = "0.1.1"
derive = "1.0.0"

[features]
default = ["tui"]
Expand Down
2 changes: 0 additions & 2 deletions src/analyzer/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
pub mod model;
pub mod service;
pub mod repository;

use serde::Serialize;
use std::ops::Add;
11 changes: 1 addition & 10 deletions src/analyzer/model.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::ingestion::model::IngestionDate;
use crate::ingestion::model::IngestionPhase;
use crate::substance::DosageClassification;
use std::ops::Range;

/// `IngestionAnalysis` is a struct that represents the analysis of an ingestion
/// event. It contains various fields to store information about the ingestion,
Expand Down Expand Up @@ -47,12 +47,3 @@ pub struct IngestionAnalysis
/// of the ingestion event.
pub phases: Vec<IngestionPhase>,
}

#[derive(Debug, Clone, Serialize)]
pub struct IngestionPhase
{
pub(crate) class: crate::substance::route_of_administration::phase::PhaseClassification,
pub(crate) duration_range: Range<IngestionDate>,
pub(crate) prev: Option<Box<IngestionPhase>>,
pub(crate) next: Option<Box<IngestionPhase>>,
}
41 changes: 0 additions & 41 deletions src/analyzer/repository.rs

This file was deleted.

106 changes: 0 additions & 106 deletions src/analyzer/service.rs

This file was deleted.

Loading

0 comments on commit 3c5a1e9

Please sign in to comment.