ESGF / esgf-download

ESGF data transfer and replication tool
https://esgf.github.io/esgf-download/
BSD 3-Clause "New" or "Revised" License
15 stars 2 forks source link

`convert`: replace .txt extension filter with empty Query filter #35

Closed svenrdz closed 8 months ago

svenrdz commented 8 months ago

Resolves https://github.com/ESGF/esgf-download/issues/34

The .txt extension filter allowed esgpull convert to be used with a very coarse path, such as **/*.

To keep this feature, convert now compares each generated Query with an "empty" Query that is produced according to default_options set in the config. Any file that produces that same empty Query is then reject, since we assume this fike was NOT a valid synda selection file.

Changes