• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geo-engine / geoengine / 15296353110

28 May 2025 09:16AM UTC coverage: 89.915%. First build
15296353110

Pull #1000

github

web-flow
Merge 4296ac453 into ee3a9c265
Pull Request #1000: feat: Add ml model input and output shape to allow models run on entire tiles

494 of 591 new or added lines in 11 files covered. (83.59%)

127066 of 141318 relevant lines covered (89.91%)

59687.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/services/src/machine_learning/error.rs
1
use snafu::Snafu;
2
use strum::IntoStaticStr;
3

4
use super::MlModelName;
5

6
#[derive(Debug, Snafu, IntoStaticStr)]
×
7
#[snafu(visibility(pub(crate)))]
8
#[snafu(context(suffix(MachineLearningError)), module(error))] // disables default `Snafu` suffix
9
pub enum MachineLearningError {
10
    CouldNotFindMlModelFile {
11
        source: crate::error::Error,
12
    },
13
    ModelNotFound {
14
        name: MlModelName,
15
    },
16
    DuplicateMlModelName {
17
        name: MlModelName,
18
    },
19
    InvalidModelNamespace {
20
        name: MlModelName,
21
    },
22
    #[snafu(display("An unexpected database error occurred."))]
23
    Postgres {
24
        source: tokio_postgres::Error,
25
    },
26
    #[snafu(display("An unexpected database error occurred."))]
27
    Bb8 {
28
        source: bb8_postgres::bb8::RunError<tokio_postgres::Error>,
29
    },
30
    #[snafu(display("An underlying MachineLearningError occured: {source}"))]
31
    MachineLearning {
32
        source: geoengine_operators::machine_learning::MachineLearningError,
33
    },
34
}
35

36
impl From<bb8_postgres::tokio_postgres::error::Error> for MachineLearningError {
37
    fn from(e: bb8_postgres::tokio_postgres::error::Error) -> Self {
×
38
        Self::Postgres { source: e }
×
39
    }
×
40
}
41

42
impl From<geoengine_operators::machine_learning::MachineLearningError> for MachineLearningError {
NEW
43
    fn from(e: geoengine_operators::machine_learning::MachineLearningError) -> Self {
×
NEW
44
        Self::MachineLearning { source: e }
×
NEW
45
    }
×
46
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc