Skip to content

Commit ef80824

Browse files
committed
fixed regex line break bug
1 parent 091b8fc commit ef80824

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/ServoProjectModules/CalibrationAnalyzers/MotorCoggingTorque.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def __init__(self, positions, forces):
2222
self.cogging = np.array([sum(samples) / len(samples) for samples in samplesList])
2323

2424
_vecPattern = re.compile(
25-
r'(?P<beg>.*getPosDepForceCompVec\(\)\s*\{(.*\n)*?\s*(constexpr)?\s+(static)?\s+std\s*::\s*array\s*\
26-
<\s*int16_t\s*,\s*512\s*>\s+vec\s*=\s*)\{\s*(?P<vec>[^\}]*)\s*\};')
25+
r'(?P<beg>.*getPosDepForceCompVec\(\)\s*\{(.*\n)*?\s*(constexpr)?\s+(static)?\s+std\s*::\s*array\s*'
26+
r'<\s*int16_t\s*,\s*512\s*>\s+vec\s*=\s*)\{\s*(?P<vec>[^\}]*)\s*\};')
2727

2828
@staticmethod
2929
def checkForPreviousCalibration(configFileAsString, configClassName):

0 commit comments

Comments
 (0)