Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
Alignment
CI
clang_tidy
commands
iwyu
physmon
check_end_of_file.py
check_fpe_masks.py
check_include_guards.py
check_license.py
check_smearing_config.py
fix_pragma.py
merge_hashes.py
perf_headwind.py
release.py
root_event_diff_np.py
util.py
cmake
Core
docs
Examples
Fatras
Plugins
Tests
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
merge_hashes.py
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file merge_hashes.py
1
#!/usr/bin/env python3
2
import
argparse
3
4
p = argparse.ArgumentParser()
5
p.add_argument(
"output"
)
6
p.add_argument(
"files"
, nargs=
"+"
)
7
8
args = p.parse_args()
9
10
items = {}
11
12
for
file
in
args.files:
13
with
open
(file)
as
fh:
14
for
line
in
fh:
15
key, value = line.split(
":"
, 1)
16
items[key.strip()] = value.strip()
17
18
with
open
(args.output,
"w"
)
as
fh:
19
for
key, value
in
items.items():
20
fh.write(f
"{key}: {value}\n"
)
acts
blob
sPHENIX
CI
merge_hashes.py
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:32
using
1.8.2 with
sPHENIX GitHub integration