Keck-DataReductionPipelines / KeckDRPFramework

Keck DRP Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ingest data fails quietly

joshwalawender opened this issue · comments

When building a simple framework, I found that if I passed a single file to framework.ingest_data, for example:

framework.ingest_data(None, args.file, False)

it would fail to process the file. If I pass the same file as a list:

framework.ingest_data(None, [args.file], False)

it works fine. We should probably modify ingest_data so that it either processes a string argument or it spits out an informative message.

No ingest_data can take a name of a list of names.
Will give warning if files do not exist.

If the input name (args.file in the example above) is a single file, it does not execute on that file and provides no messages to the user as to why.