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
check_clang_tidy.py
item.py
parse_clang_tidy.py
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
item.py
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file item.py
1
from
dataclasses
import
dataclass
2
from
pathlib
import
Path
3
from
typing
import
List
4
5
import
pydantic
6
7
8
class
Item
(pydantic.BaseModel):
9
path: Path
10
line: int
11
col: int
12
message: str
13
code: str
14
severity: str
15
16
def
__hash__
(self):
17
return
hash
((self.path, self.line, self.col, self.code))
18
19
def
__eq__
(self, other):
20
return
(self.path, self.line, self.col, self.code) == (
21
other.path,
22
other.line,
23
other.col,
24
other.code,
25
)
26
27
28
class
ItemCollection
(pydantic.BaseModel):
29
__root__: List[Item]
acts
blob
sPHENIX
CI
clang_tidy
item.py
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:32
using
1.8.2 with
sPHENIX GitHub integration