Closed pzingg closed 5 years ago
Same problem as issue #12 : I execute:
params = {
'space': {
'type': 'factorial'
},
'populationSize': 20,
'replicates': 0
}
fname = 'esd-factorial-8x5.csv'
# Save and validate the space:
task = daptics.put_experimental_space_parameters_csv(fname,params)
daptics.wait_for_current_task()
and get:
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
<ipython-input-8-6f9423761708> in <module>
13 # Save and validate the space:
14 #task = daptics.save_experimental_and_space_parameters_csv(fname, params)
---> 15 task = daptics.put_experimental_space_parameters_csv(fname,params)
16 daptics.wait_for_current_task()
17 print("Experimental space done")
~/Projects/genelife/fastgenegol/genelifepy/daptics-api/python_client/daptics_client.py in put_experimental_space_parameters_csv(self, fname, params)
848 param_rows = [r for r in reader]
849 params['space']['table'] = { 'data': param_rows }
--> 850 return self.put_experimental_space_parameters(params)
851
852 def put_initial_experiments(self, experiments=None):
~/Projects/genelife/fastgenegol/genelifepy/daptics-api/python_client/daptics_client.py in put_experimental_space_parameters(self, params)
742 }
743 """)
--> 744 data = self.gql.execute(doc, variable_values=vars)
745 if 'saveSessionParameters' in data and data['saveSessionParameters'] is not None:
746 task_id = data['saveSessionParameters']['taskId']
~/.pyenv/versions/3.7.2/lib/python3.7/site-packages/gql/client.py in execute(self, document, *args, **kwargs)
50 result = self._get_result(document, *args, **kwargs)
51 if result.errors:
---> 52 raise Exception(str(result.errors[0]))
53
54 return result.data
Exception: {'path': ['saveSessionParameters'], 'message': 'In /home/shiny/rservex-sessions/Norman_20190819132253.sifl.local/R , runtime error: Error in .subset2(public_bind_env, "initialize")(...): unused argument ("Initializing experimental space")\n', 'locations': [{'line': 2, 'column': 0}]}
I have checked that the ESD file esd-selection-8.csv
exists in the same directory as notebook kernel was started. Not sure about "unused argument" message.
String "Initializing experimental space" occurs in R function saveDefinitionTask()
:
definitionEvent.R: task <- pdtr::AsyncTask$new(requestId, "space", "Initializing experimental space",
logdir = logdir, onStart = pdtTaskStart, onComplete = pdtTaskComplete)
Looks like maybe problem is in pdtr::AsyncTask$new()
args?
Closing this and moving on to v0.8.1.
Not ready for master yet--notebook testing and changelog TBD.