Commit fd8401cb authored by Clément Haëck's avatar Clément Haëck
Browse files

Move get_files function is lib.images

parent 18a30a41
...@@ -4,6 +4,7 @@ from datetime import datetime ...@@ -4,6 +4,7 @@ from datetime import datetime
from os import path from os import path
from filefinder import Finder from filefinder import Finder
from filefinder.library import get_date
import lib import lib
import lib.data import lib.data
...@@ -77,3 +78,7 @@ def parse_text_files(files): ...@@ -77,3 +78,7 @@ def parse_text_files(files):
images.append(Image(lon_min, lon_max, lat_min, lat_max, images.append(Image(lon_min, lon_max, lat_min, lat_max,
ix, iy, nx, ny, f_nc, date)) ix, iy, nx, ny, f_nc, date))
return images return images
def get_files(finder):
return {get_date(m): path.join(finder.root, f) for f, m in finder.files}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment