Skip to content

Commit b99d6ae

Browse files
author
Rafael Pastrana
committed
Change from _get_local_url to _get_mesh_url
1 parent 9fa84be commit b99d6ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/compas/robots/resources/basic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def can_load_mesh(self, url):
8282
Otherwise ``False``.
8383
"""
8484

85-
url = self._get_local_url(url)
85+
url = self._get_mesh_url(url)
8686
scheme = urlparse(url).scheme
8787

8888
# Local files have either:
@@ -112,10 +112,10 @@ def load_mesh(self, url):
112112
:class:`Mesh`
113113
Instance of a mesh.
114114
"""
115-
url = self._get_local_url(url)
115+
url = self._get_mesh_url(url)
116116
return _mesh_import(url, url)
117117

118-
def _get_local_url(self, url):
118+
def _get_mesh_url(self, url):
119119
"""Concatenates basepath directory to URL only if defined in the keyword arguments.
120120
It also strips out the scheme 'file:///' from the URL if present.
121121
@@ -127,7 +127,7 @@ def _get_local_url(self, url):
127127
Returns
128128
-------
129129
url: str
130-
Extended mesh location if basepath in kwargs.
130+
Extended mesh url location if basepath in kwargs.
131131
Else, it returns url.
132132
"""
133133
if url.startswith('file:///'):

0 commit comments

Comments
 (0)