You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
when one instanciate an instance giving a name that contains a - (minus sign).
the generated instance have a name slightly changed to name whit - (minus) replaced by _ underscore. see:
as far I as understand this is due to: the call of generate_name in spython/instance/__init__.py
def generate_name(self, name=None):
"""generate a Robot Name for the instance to use, if the user doesn't
supply one.
"""
# If no name provided, use robot name
if name is None:
name = self.RobotNamer.generate()
self.name = name.replace("-", "_")
I was expecting to have an instance with name according to the one provided
is there a reason, that I don't catch, for this change
regards
Eric
The text was updated successfully, but these errors were encountered:
I would be OK with matching the convention that SIngularityCE uses - if they allow dashes (and have a regex to check) we can do that too. I'm open to reviewing a PR that makes this change if you'd like it!
Hello,
when one instanciate an instance giving a name that contains a
-
(minus sign).the generated instance have a name slightly changed to name whit
-
(minus) replaced by_
underscore. see:as far I as understand this is due to: the call of
generate_name
inspython/instance/__init__.py
I was expecting to have an instance with name according to the one provided
is there a reason, that I don't catch, for this change
regards
Eric
The text was updated successfully, but these errors were encountered: