Skip to content

Commit fdde164

Browse files
fix
1 parent 72eea74 commit fdde164

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

python/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def main() -> None:
3838
"--distpath",
3939
"tmp/dist",
4040
"--name",
41-
"anonymize_excel",
41+
"anonymize-excel",
4242
"--runtime-hook",
4343
"prm/runtime_hook.py",
4444
"--onefile",

python/python/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def fix_delete_free_text(value: str) -> float | None | str:
2323

2424
def add_noise(value: float, epsilon: int) -> float:
2525
scale = 1 / epsilon
26-
noise = np.random.laplace(loc=0, scale=scale) # noqa: NPY002
27-
return value + noise
26+
noise: float = np.random.laplace(loc=0, scale=scale) # noqa: NPY002
27+
return (value + noise)
2828

2929

3030
def apply_differential_privacy( # noqa: C901, PLR0913, PLR0912
Binary file not shown.

0 commit comments

Comments
 (0)