Packings#
- class mrinufft.trajectories.utils.Packings(value)[source]#
Bases:
StrEnumEnumerate available packing method for shots.
It is mostly used for wave-CAIPI trajectory
See also
mrinufft.trajectories.trajectories3D.initialize_3D_wave_caipiMethods
encodeEncode the string using the codec registered for encoding.
replaceReturn a copy with all occurrences of substring old replaced by new.
splitReturn a list of the substrings in the string, using sep as the separator string.
rsplitReturn a list of the substrings in the string, using sep as the separator string.
joinConcatenate any number of strings.
capitalizeReturn a capitalized version of the string.
casefoldReturn a version of the string suitable for caseless comparisons.
titleReturn a version of the string where each word is titlecased.
centerReturn a centered string of length width.
countReturn the number of non-overlapping occurrences of substring sub in string S[start:end].
expandtabsReturn a copy where all tab characters are expanded using spaces.
findReturn the lowest index in S where substring sub is found, such that sub is contained within S[start:end].
partitionPartition the string into three parts using the given separator.
indexReturn the lowest index in S where substring sub is found, such that sub is contained within S[start:end].
ljustReturn a left-justified string of length width.
lowerReturn a copy of the string converted to lowercase.
lstripReturn a copy of the string with leading whitespace removed.
rfindReturn the highest index in S where substring sub is found, such that sub is contained within S[start:end].
rindexReturn the highest index in S where substring sub is found, such that sub is contained within S[start:end].
rjustReturn a right-justified string of length width.
rstripReturn a copy of the string with trailing whitespace removed.
rpartitionPartition the string into three parts using the given separator.
splitlinesReturn a list of the lines in the string, breaking at line boundaries.
stripReturn a copy of the string with leading and trailing whitespace removed.
swapcaseConvert uppercase characters to lowercase and lowercase characters to uppercase.
translateReplace each character in the string using the given translation table.
upperReturn a copy of the string converted to uppercase.
startswithReturn True if S starts with the specified prefix, False otherwise.
endswithReturn True if S ends with the specified suffix, False otherwise.
removeprefixReturn a str with the given prefix string removed if present.
removesuffixReturn a str with the given suffix string removed if present.
isasciiReturn True if all characters in the string are ASCII, False otherwise.
islowerReturn True if the string is a lowercase string, False otherwise.
isupperReturn True if the string is an uppercase string, False otherwise.
istitleReturn True if the string is a title-cased string, False otherwise.
isspaceReturn True if the string is a whitespace string, False otherwise.
isdecimalReturn True if the string is a decimal string, False otherwise.
isdigitReturn True if the string is a digit string, False otherwise.
isnumericReturn True if the string is a numeric string, False otherwise.
isalphaReturn True if the string is an alphabetic string, False otherwise.
isalnumReturn True if the string is an alpha-numeric string, False otherwise.
isidentifierReturn True if the string is a valid Python identifier, False otherwise.
isprintableReturn True if the string is printable, False otherwise.
zfillPad a numeric string with zeros on the left, to fill a field of the given width.
formatReturn a formatted version of S, using substitutions from args and kwargs.
format_mapReturn a formatted version of S, using substitutions from mapping.
maketransReturn a translation table usable for str.translate().
Attributes
RANDOMCIRCLETRIANGLEHEXAGONSQUAREFIBONACCICIRCULARTRIANGULARHEXAGONALUNIFORMSPIRAL