-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
On Windows 10, I can't seem to change the "filename" parameter in the following script.
import pytry
class Simple(pytry.Trial):
def params(self):
self.param('first number', x=1)
self.param('second number', y=1)
self.param('operation to compute', op='plus')
self.param('the filename', filename="weights.npz")
def evaluate(self, p):
print(p.filename)
if p.op == 'plus':
result = p.x + p.y
if p.op == 'minus':
result = p.x - p.y
return dict(result=result)
However, if I change the parameter name to fn everything works fine.
import pytry
class Simple(pytry.Trial):
def params(self):
self.param('first number', x=1)
self.param('second number', y=1)
self.param('operation to compute', op='plus')
self.param('the filename', fn="weights.npz")
def evaluate(self, p):
print(p.fn)
if p.op == 'plus':
result = p.x + p.y
if p.op == 'minus':
result = p.x - p.y
return dict(result=result)
Any ideas why this might be happening?
Metadata
Metadata
Assignees
Labels
No labels