use ndarray::Array4;
use std::path::PathBuf;
use thiserror::Error;
pub mod eko;
mod inventory;
#[derive(Error, Debug)]
pub enum EKOError {
#[error("No working directory")]
NoWorkingDir,
#[error("I/O error")]
IOError(#[from] std::io::Error),
#[error("Loading operator from `{0}` failed")]
OperatorLoadError(PathBuf),
#[error("Failed to read key(s) `{0}`")]
KeyError(String),
}
pub type Result<T> = std::result::Result<T, EKOError>;
pub struct Operator {
pub op: Option<Array4<f64>>,
pub err: Option<Array4<f64>>,
}
impl Default for Operator {
fn default() -> Self {
Self {
op: None,
err: None,
}
}
}