Skip to content

Commit

Permalink
Version bump and format
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Herberg Hovd committed Dec 30, 2023
1 parent cdbd5d4 commit e702b82
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "npcore"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
authors = [
"Julián D. Otálvaro <juliandavid347@gmail.com>",
Expand Down Expand Up @@ -37,7 +37,7 @@ argmin = { version = "0.8.1", features = [] }
itertools = "0.12.0"
faer-core = { version = "0.15.0", features = [] }
# faer-lu = "0.9"
faer-qr = "0.15.0"
faer-qr = "0.16.0"
# faer-cholesky = "0.9"
# faer-svd = "0.9"
argmin-math = { version = "0.3.0", features = ["ndarray_v0_15-nolinalg-serde"] }
Expand Down
16 changes: 7 additions & 9 deletions src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ use tracing_subscriber::util::SubscriberInitExt;
use tracing_subscriber::EnvFilter;

/// Setup logging for the library
///
///
/// This function sets up logging for the library. It uses the `tracing` crate, and the `tracing-subscriber` crate for formatting.
///
///
/// The log level is defined in the configuration file, and defaults to `INFO`.
///
///
/// If `log_out` is specifified in teh configuration file, a log file is created with the specified name.
///
///
/// Additionally, if the `tui` option is set to `true`, the log messages are also written to the TUI.
///
///
/// If not, the log messages are written to stdout.
pub fn setup_log(settings: &Settings, ui_tx: UnboundedSender<Comm>) {
// Use the log level defined in configuration file, or default to info
Expand Down Expand Up @@ -62,10 +62,8 @@ pub fn setup_log(settings: &Settings, ui_tx: UnboundedSender<Comm>) {
};

// Define layer for TUI
let tui_writer_closure = move || {
TuiWriter {
ui_tx: ui_tx.clone()
}
let tui_writer_closure = move || TuiWriter {
ui_tx: ui_tx.clone(),
};

let tui_layer = if settings.parsed.config.tui {
Expand Down
2 changes: 1 addition & 1 deletion src/routines/settings/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub struct Computed {
/// - `value`: the value of the error
/// - `class`: the class of the error, can be either `additive` or `proportional`
/// - `poly`: the polynomial coefficients of the error model
///
///
/// For more information see `routines::evaluation::sigma`
#[derive(Deserialize, Clone, Debug)]
pub struct Error {
Expand Down

0 comments on commit e702b82

Please sign in to comment.