Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
awarde96 committed Jan 16, 2025
1 parent 2713e94 commit 8b4c017
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions covjsonkit/encoder/TimeSeries.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,6 @@ def from_polytope_step(self, result):
start = time.time()
logging.debug("Coords creation: %s", start) # noqa: E501

print("fields", fields)
print("coords", coords)
print("mars_metadata", mars_metadata)
print("range_dict", range_dict)

self.add_reference(
{
"coordinates": ["x", "y", "z"],
Expand Down Expand Up @@ -245,16 +240,15 @@ def from_polytope_step(self, result):
for num in fields["number"]:
for para in fields["param"]:
for date in fields["dates"]:
#date_format = "%Y%m%dT%H%M%S"
#new_date = pd.Timestamp(date).strftime(date_format)
#start_time = datetime.strptime(new_date, date_format)
# date_format = "%Y%m%dT%H%M%S"
# new_date = pd.Timestamp(date).strftime(date_format)
# start_time = datetime.strptime(new_date, date_format)
# add current date to list by converting it to iso format
#stamp = start_time + timedelta(hours=int(step))
# stamp = start_time + timedelta(hours=int(step))
coordinates[fields["dates"][0]]["t"].append(date)
break
break
break
print("coordinates", coordinates)

end = time.time()
delta = end - start
Expand Down Expand Up @@ -282,7 +276,7 @@ def from_polytope_step(self, result):
mm = mars_metadata.copy()
mm["number"] = num
mm["Forecast date"] = date
#del mm["step"]
# del mm["step"]
self.add_coverage(mm, coordinates[fields["dates"][0]], val_dict)

end = time.time()
Expand Down

0 comments on commit 8b4c017

Please sign in to comment.