Skip to content

Commit

Permalink
Remove unneeded print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
awarde96 committed Nov 25, 2024
1 parent dd57fcd commit 46270c2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions covjsonkit/decoder/Path.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,4 @@ def to_xarray(self):
for mars_metadata in self.mars_metadata[0]:
ds.attrs[mars_metadata] = self.mars_metadata[0][mars_metadata]

# Add date attribute
# ds.attrs["date"] = self.get_coordinates()["t"]["values"][0]

return ds
12 changes: 0 additions & 12 deletions covjsonkit/encoder/Path.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ def from_polytope(self, result):
}
)

print(fields)
print(coords)
print(range_dict)

for date in coords.keys():
coord = coords[date]["composite"]
coords[date]["composite"] = []
Expand Down Expand Up @@ -166,21 +162,13 @@ def from_polytope(self, result):
for date in combined_dict.keys():
for num in combined_dict[date].keys():
val_dict = {}
# for step in combined_dict[date][num][self.parameters[0]].keys():
# val_dict[step] = {}
for para in combined_dict[date][num].keys():
if para not in val_dict:
val_dict[para] = []
for step in combined_dict[date][num][para].keys():
val_dict[para].extend(combined_dict[date][num][para][step])
# for step in val_dict.keys():
mm = mars_metadata.copy()
mm["number"] = num
# mm["step"] = step
# temp = []
# for coord in coords[date]["composite"]:
# temp.append([step] + coord)
# coords[date]["composite"] = temp
mm["Forecast date"] = date
if "levelist" in mm:
del mm["levelist"]
Expand Down

0 comments on commit 46270c2

Please sign in to comment.