Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mark several strings as raw #841

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def init():
if hasattr(sys, "frozen") and sys.platform.startswith("win"):
# Click in the .inv3 file support
root = winreg.HKEY_CLASSES_ROOT
key = "InVesalius 3.1\InstallationDir"
key = r"InVesalius 3.1\InstallationDir"
hKey = winreg.OpenKey(root, key, 0, winreg.KEY_READ)
value, type_ = winreg.QueryValueEx(hKey, "")
path = os.path.join(value, "dist")
Expand Down
6 changes: 3 additions & 3 deletions invesalius/data/transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

"""Homogeneous Transformation Matrices and Quaternions.
r"""Homogeneous Transformation Matrices and Quaternions.

A library for calculating 4x4 matrices for translating, rotating, reflecting,
scaling, shearing, projecting, orthogonalizing, and superimposing arrays of
Expand Down Expand Up @@ -896,7 +896,7 @@ def orthogonalization_matrix(lengths, angles):


def affine_matrix_from_points(v0, v1, shear=True, scale=True, usesvd=True):
"""Return affine transform matrix to register two point sets.
r"""Return affine transform matrix to register two point sets.

v0 and v1 are shape (ndims, \*) arrays of at least ndims non-homogeneous
coordinates, where ndims is the dimensionality of the coordinate space.
Expand Down Expand Up @@ -1007,7 +1007,7 @@ def affine_matrix_from_points(v0, v1, shear=True, scale=True, usesvd=True):


def superimposition_matrix(v0, v1, scale=False, usesvd=True):
"""Return matrix to transform given 3D point set into second point set.
r"""Return matrix to transform given 3D point set into second point set.

v0 and v1 are shape (3, \*) or (4, \*) arrays of at least 3 points.

Expand Down
2 changes: 1 addition & 1 deletion invesalius/reader/bitmap_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def Add(self, bmp):
self.bitmapfiles.append(bmp)

def Sort(self, x):
c_re = re.compile("\d+")
c_re = re.compile(r"\d+")
if len(c_re.findall(x[6])) > 0:
return [int(i) for i in c_re.findall(x[6])]
else:
Expand Down