Functions | |
def | fileChecksum (path, checksum_types=None, oldformat=False) |
def | calculateChecksum (fileobj, checksum_types=None, oldformat=False) |
def | fileEnstoreChecksum (path) |
def | enstoreChecksum (fileobj) |
def | _make_adler32 (startval=None, hex_output=True) |
def | _make_hash (algorithm) |
def | _get_checksum_algorithm (algorithm) |
def | list_checksum_algorithms () |
Variables | |
_Adler32 = None | |
_Hasher = None | |
_value | |
_hex | |
hash | |
|
private |
Definition at line 116 of file utility.py.
References samweb_client.utility._make_adler32(), and samweb_client.utility._make_hash().
Referenced by samweb_client.utility.calculateChecksum().
|
private |
Definition at line 58 of file utility.py.
References samweb_client.utility._Adler32.
Referenced by samweb_client.utility._get_checksum_algorithm().
|
private |
Definition at line 85 of file utility.py.
References samweb_client.utility._Hasher.
Referenced by samweb_client.utility._get_checksum_algorithm().
def samweb_client.utility.calculateChecksum | ( | fileobj, | |
checksum_types = None , |
|||
oldformat = False |
|||
) |
Definition at line 23 of file utility.py.
References samweb_client.utility._get_checksum_algorithm(), and submit_syst.str.
Referenced by samweb_client.utility.enstoreChecksum(), and samweb_client.utility.fileChecksum().
def samweb_client.utility.enstoreChecksum | ( | fileobj | ) |
Definition at line 52 of file utility.py.
References samweb_client.utility.calculateChecksum().
def samweb_client.utility.fileChecksum | ( | path, | |
checksum_types = None , |
|||
oldformat = False |
|||
) |
Calculate enstore compatible CRC value
Definition at line 12 of file utility.py.
References samweb_client.utility.calculateChecksum(), open(), and submit_syst.str.
Referenced by samweb_client.utility.fileEnstoreChecksum().
def samweb_client.utility.fileEnstoreChecksum | ( | path | ) |
Definition at line 50 of file utility.py.
References samweb_client.utility.fileChecksum().
Referenced by runNovaSAM.createMetadata(), runNovaSAM_cmake.createMetadata(), and MetadataUtils.createMetadata().
def samweb_client.utility.list_checksum_algorithms | ( | ) |
Definition at line 125 of file utility.py.
|
private |
Definition at line 57 of file utility.py.
Referenced by samweb_client.utility._make_adler32().
|
private |
Definition at line 84 of file utility.py.
Referenced by samweb_client.utility._make_hash().
|
private |
Definition at line 69 of file utility.py.
|
private |
Definition at line 66 of file utility.py.
Referenced by photrans::BrightnessLevel.BrightnessLevel().
samweb_client.utility.hash |
Definition at line 91 of file utility.py.
Referenced by generic.models.Organizational.PlotCollectionKey.__hash__(), ana::OscillatableSpectrum._Oscillated(), ana::PredictionInterp._PredictComponentSyst(), ana::PredictionInterp._ShiftedComponent(), osc::OscCalcCPT.GetParamsHash(), ana2019::fakedata::KeepEvtFunc.Keep(), rwgt::NeutrinoHasher.operator()(), ana::EvtRNGSyst.RNG(), ana::MichelTaggingSyst2020.Shift(), ana::MichelTaggingSyst2018.Shift(), and ana::PredictionInterp.ShiftedComponent().