ProtoLife / daptics-api

API documentation and clients for the daptics.ai design of experiments engine
https://daptics.ai
GNU General Public License v3.0
1 stars 1 forks source link

bug: Error creating analytics files with prohibited characters in parameter names #27

Open DitlevHB opened 4 years ago

DitlevHB commented 4 years ago

Hi Daptics,

I have completed a new campaign of 10 generations using Daptics API Version 0.9.3 and I get the following errors (1,2) when runnning "get_all_analytics_files" for session "06bf3gqzmiigwzab7io7":

(1) failed with error: {'path': ['createAnalytics'], 'message': "In /home/shiny/rservex-sessions/Ditlev_20200412155004.wzn6.local/R , runtime error: Error in FUN(X[[i]], ...): object 'log_k' not found\n", 'locations': [{'line': 2, 'column': 0}]}

(2) failed with error: {'path': ['createAnalytics'], 'message': 'In /home/shiny/rservex-sessions/Ditlev_20200413104912.uqok.local/R , runtime error: Error in pdf(fileName): too many open devices\n', 'locations': [{'line': 2, 'column': 0}]}

ESD parameter names are: log_k+O1 log_k-O1 log_k+O2 log_k-O2 log_k+T log_k-T log_kL

Could the first error have something to do with the fact that parameter names contain hyphens or plus signs?

EDIT: Certain special characters (-, +) are not allowed in ESD parameter names, and so I have successfully completed a new campaign after stripping hyphens and plus signs.

Best, Ditlev

pzingg commented 4 years ago

Possible solutions. Either forbid these names (which conflicts with ProtoLife/pdt-server#528), or use backticks to protect column names in plotting functions.

  1. https://stackoverflow.com/questions/45803924/using-punctuation-in-r-column-names

  2. https://stackoverflow.com/questions/19585628/ggplot2-how-to-plot-columns-containing-special-characters