Skip to content

Commit

Permalink
final fixes for v2.1.0 (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpata authored Nov 12, 2024
1 parent 88e4875 commit 432cc49
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The following table specifies which version of the jpata/particleflow software s
| ----- | ----------- | ------------ |
| [1.9.0](https://github.com/jpata/particleflow/releases/v1.9.0) | 2.4.0 | 2.2.0 |
| [2.0.0](https://github.com/jpata/particleflow/releases/v2.0.0) | 2.4.0 | 2.3.0 |
| [2.1.0](https://github.com/jpata/particleflow/releases/v2.1.0) | 2.5.0 | 2.5.0 |

## MLPF on open datasets

Expand Down
2 changes: 1 addition & 1 deletion mlpf/model/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ def run(rank, world_size, config, args, outdir, logfile):

jetdef = fastjet.JetDefinition(fastjet.ee_genkt_algorithm, 0.4, -1.0)
jet_ptcut = 5
if config["dataset"] == "cms":
elif config["dataset"] == "cms":
import fastjet

jetdef = fastjet.JetDefinition(fastjet.antikt_algorithm, 0.4)
Expand Down
25 changes: 25 additions & 0 deletions scripts/tallinn/deploy_clic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash


rm -f files_to_copy.txt
maxfiles=100
path=experiments/pyg-clic_20241106_104416_929167/./preds_checkpoint-20-1.914489
targetpath=/home/joosep/huggingface/particleflow/clic/clusters/v2.1.0/pyg-clic_20241106_104416_929167/

mkdir -p $targetpath
cp $path/../* $targetpath/
cp -R $path/../checkpoints $targetpath/
cp -R $path/../history $targetpath/
cp -R $path/../runs $targetpath/

samplestocopy=(
"clic_edm_qq_pf"
"clic_edm_ttbar_pf"
"clic_edm_ww_fullhad_pf"
)

for sample in "${samplestocopy[@]}"; do
find "$path/$sample" -type f | sort | head -n$maxfiles >> files_to_copy.txt
done

# rsync --progress --relative --files-from files_to_copy.txt `pwd` $targetpath
22 changes: 22 additions & 0 deletions scripts/tallinn/deploy_cms.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash


rm -f files_to_copy.txt
maxfiles=100
path=experiments/pyg-cms_20241101_090645_682892/./preds_checkpoint-08-2.986092
targetpath=/home/joosep/huggingface/particleflow/cms/v2.1.0/pyg-cms_20241101_090645_682892/

samplestocopy=(
"cms_pf_qcd"
"cms_pf_qcd_nopu"
"cms_pf_ttbar"
"cms_pf_ttbar_nopu"
"cms_pf_ztt"
"cms_pf_ztt_nopu"
)

for sample in "${samplestocopy[@]}"; do
find "$path/$sample" -type f | sort | head -n$maxfiles >> files_to_copy.txt
done

rsync --progress --relative --files-from files_to_copy.txt `pwd` $targetpath

0 comments on commit 432cc49

Please sign in to comment.