Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ci/eval/compare/cmp-stats.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#! /usr/bin/env nix-shell
#! nix-shell -i "python3 -I" -p "python3.withPackages(ps: with ps; [ numpy pandas scipy ])"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the production caller.

(python3.withPackages (
ps: with ps; [
numpy
pandas
scipy
]
))

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could refer to current nixpkgs checkout here instead of relying on NIX_PATH, i.e. -I nixpkgs ../.. (don't remember the exact syntax in this case).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's the expression that Silvan suggested in #425551:

#!/usr/bin/env nix-shell
#!nix-shell -i "python3 -I" --expr 'with import ../.. {}; with pkgs; mkShellNoCC { packages = [ python3.withPackages(ps: with ps; [ numpy pandas scipy ]) ] }'

Likely can be golfed substantially.


import json
import os
from scipy.stats import ttest_rel
Expand Down
Loading