Skip to content

Commit

Permalink
Merge pull request #20 from wpreimes/master
Browse files Browse the repository at this point in the history
Fix bug in indexer
  • Loading branch information
wpreimes authored Feb 5, 2025
2 parents dad57d6 + aae55a2 commit 7c182f2
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 7c182f2

Please sign in to comment.