Skip to content

Commit

Permalink
bump akatsuki-pp
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunyoku committed May 31, 2024
1 parent 63e3275 commit e5bd157
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "akatsuki-pp-py"
version = "1.0.2"
version = "1.0.3"
description = "osu! difficulty and pp calculation for all modes"
authors = ["Max Ohn <[email protected]>", "tsunyoku <[email protected]>"]
license = "MIT"
Expand All @@ -12,7 +12,7 @@ crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.17", features = ["extension-module", "macros"] }
akatsuki-pp = { git = "https://github.com/osuAkatsuki/akatsuki-pp-rs", rev = "d6b4cbb90d12e06fa7b9405d87b9922e08522775" }
akatsuki-pp = { git = "https://github.com/osuAkatsuki/akatsuki-pp-rs", rev = "55cc1f2729988614c0760907e726a8bbae2a8bce" }

[profile.release]
lto = "fat"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "akatsuki-pp-py"
version = "1.0.2"
version = "1.0.3"
requires-python = ">=3.7"
description = "osu! difficulty and pp calculation for all modes"
classifiers = [
Expand Down
2 changes: 2 additions & 0 deletions src/calculator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ impl PyCalculator {
n_spinners: attrs.difficulty.n_spinners,
stars: attrs.difficulty.stars,
max_combo: attrs.difficulty.max_combo,
aim_difficult_strain_count: 0.0,
speed_difficult_strain_count: 0.0,
},
pp: attrs.pp,
pp_acc: attrs.pp_acc,
Expand Down
8 changes: 7 additions & 1 deletion src/diff_attrs.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::fmt::{Debug, Display, Formatter, Result as FmtResult};

use pyo3::{pyclass, pymethods};
use akatsuki_pp::{
catch::CatchDifficultyAttributes, mania::ManiaDifficultyAttributes,
osu::OsuDifficultyAttributes, taiko::TaikoDifficultyAttributes, DifficultyAttributes,
};
use pyo3::{pyclass, pymethods};

#[pyclass(name = "DifficultyAttributes")]
#[derive(Clone, Debug)]
Expand Down Expand Up @@ -91,6 +91,8 @@ impl Debug for BorrowedDifficultyAttributes<'_> {
n_spinners,
stars,
max_combo,
aim_difficult_strain_count,
speed_difficult_strain_count,
} = attrs;

debug.field("mode", &0_u8);
Expand All @@ -109,6 +111,8 @@ impl Debug for BorrowedDifficultyAttributes<'_> {
n_spinners,
stars,
max_combo,
aim_difficult_strain_count,
speed_difficult_strain_count,
}
}
Self::Taiko(attrs) => {
Expand Down Expand Up @@ -230,4 +234,6 @@ getters! {
n_tiny_droplets as usize: (Catch),
ar as f64: (Osu, Catch),
hit_window as f64: (Taiko, Mania),
aim_difficult_strain_count as f64: (Osu),
speed_difficult_strain_count as f64: (Osu),
}

0 comments on commit e5bd157

Please sign in to comment.