Closed Yuri-YuzuChaN closed 5 months ago
This can be due to the following reason:
pf = Performance(**data) attrs = pf.calculate(self.map) obj = { "StarRating": attrs.difficulty.stars, "CS": beatmap.cs, "HP": beatmap.hp, "AR": beatmap.ar, "OD": beatmap.od, "Aim": attrs.difficulty.aim, "Speed": attrs.difficulty.speed, "aim": attrs.pp_aim, "speed": attrs.pp_speed, "accuracy": attrs.pp_accuracy, # <- here "flashlight": attrs.pp_flashlight, "effective_miss_count": attrs.effective_miss_count, "pp": attrs.pp }
The name of property of PerformanceAttributes should be pp_acc, instead of pp_accuracy:
PerformanceAttributes
pp_acc
pp_accuracy
https://github.com/MaxOhn/rosu-pp-py/blob/f0f08fe9c9a94331840db67d5cf3b9b8cd15ea55/rosu_pp_py.pyi#L896-L902
VSCode screenshot:
Would've surprised me if I didn't mess up for those at least once 😅 Will get to fixing it soon 👍
Fix released in v1.0.1 🎉
This can be due to the following reason:
The name of property of
PerformanceAttributes
should bepp_acc
, instead ofpp_accuracy
:https://github.com/MaxOhn/rosu-pp-py/blob/f0f08fe9c9a94331840db67d5cf3b9b8cd15ea55/rosu_pp_py.pyi#L896-L902
VSCode screenshot: