aplbrain / aplbrain/saber

CWL parser fails for numeric characters in cwl name

オープン
#7 コメント 1 件 リアクション 0 件 担当者 2 名 @erikjohnson24 が担当を希望しています GitHub で見る
bug
主要言語
Python
スター
17
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

説明

The conduit build command fails to properly parse cwl containing numerical variable names
example
is3D: int?
produces the following error related to the creation of datajoint variables

File "/conduit/utils/cwlparser.py", line 81, in __init__
self.job_param_db = schema(create_dj_schema(self.cwl['inputs'], self.workflow_name))()
File "/usr/local/lib/python3.6/site-packages/datajoint/schema.py", line 208, in __call__
self.process_relation_class(cls, context=dict(context, self=cls, **{cls.__name__: cls}))
File "/usr/local/lib/python3.6/site-packages/datajoint/schema.py", line 186, in process_relation_class
instance.declare(context)
File "/usr/local/lib/python3.6/site-packages/datajoint/table.py", line 62, in declare
sql, uses_external = declare(self.full_table_name, self.definition, context)
File "/usr/local/lib/python3.6/site-packages/datajoint/declare.py", line 223, in declare
name, sql, is_external = compile_attribute(line, in_key, foreign_key_sql)
File "/usr/local/lib/python3.6/site-packages/datajoint/declare.py", line 260, in compile_attribute
line=err.args[0], pos=err.args[1], msg=err.args[2]))
datajoint.errors.DataJointError: Declaration error in position 3 in line:

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。