Skip to content

Commit

Permalink
Fix bug in indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
wpreimes committed Feb 5, 2025
1 parent bdbb5a9 commit aae55a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/smos/smos_l2/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def sync_period(self, startdate, enddate, dry_run=False):
ret = []

for year, ys in df.groupby(df.index.year):
for month, ms in ys.groupby(df.index.month):
for month, ms in ys.groupby(ys.index.month):
if len(ms) == monthrange(year, month)[1]: # complete month (fast)
r = self.sync(int(year), int(month), day=None, dry_run=dry_run)
ret.append(r)
Expand All @@ -315,4 +315,4 @@ def sync_period(self, startdate, enddate, dry_run=False):
with open(os.path.join(self.local_root, 'overview.yml'), 'w') as f:
yaml.dump(props, f, default_flow_style=False, sort_keys=False)

return ret
return ret

0 comments on commit aae55a2

Please sign in to comment.