Closed gousiosg closed 3 years ago
When using the preprocess command with only the -o argument, the code crashes with the following
preprocess
-o
UnboundLocalError: local variable 'train_files_vars' referenced before assignment
This is because in the following extract
https://github.com/saltudelft/type4py/blob/93828c3d1a3460dc29cace398ca0dcb10ea14daf/type4py/preprocess.py#L302-L319
the train_files_vars variable is only initialised in the if branch
train_files_vars
if
Thank you @gousiosg for posting the issue. I have fixed the issue and pushed the fix to the main branch.
Thanks @mir-am, I can confirm that this works.
When using the
preprocess
command with only the-o
argument, the code crashes with the followingThis is because in the following extract
https://github.com/saltudelft/type4py/blob/93828c3d1a3460dc29cace398ca0dcb10ea14daf/type4py/preprocess.py#L302-L319
the
train_files_vars
variable is only initialised in theif
branch