Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DitlevHB opened this issue Apr 13, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@DitlevHB
Copy link

DitlevHB commented Apr 13, 2020

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

@DitlevHB DitlevHB added the bug Something isn't working label Apr 13, 2020
@pzingg
Copy link
Collaborator

pzingg commented Apr 15, 2020

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

@pzingg pzingg changed the title Error in extraction of analytics files "get_all_analytics_files". bug: Error in extraction of analytics files "get_all_analytics_files". Apr 29, 2021
@pzingg pzingg changed the title bug: Error in extraction of analytics files "get_all_analytics_files". bug: Error creating analytics files with prohibited characters in parameter names Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants