nsidc / granule-metgen

Metadata generator for direct-to-Cumulus era
Other
0 stars 0 forks source link

Issue 36 bugfix #74

Closed eigenbeam closed 1 month ago

eigenbeam commented 1 month ago

Fixes problems with -n values that are negative, zero, or larger than the number of granules found.

eigenbeam commented 1 month ago

I changed the granule_paths function to return a list of tuples instead of a dict. That just makes it easier to slice the first 'n' granules to process.

eigenbeam commented 1 month ago

Also, I think I need to do a little refactoring in order to be able to easily write tests for things like the -n option. But I wanted to fix this bug and then add a ticket to do that work (later).