Skip to content

Commit ec97207

Browse files
committed
update samples from Release-101 as a part of SDK release
1 parent a2d20b0 commit ec97207

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

how-to-use-azureml/automated-machine-learning/continuous-retraining/upload_weather_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ def get_noaa_data(start_time, end_time):
5454
end_time_last_slice = ds.data_changed_time.replace(tzinfo=None)
5555
print("Dataset {0} last updated on {1}".format(args.ds_name,
5656
end_time_last_slice))
57-
except Exception as e:
57+
except Exception:
5858
print(traceback.format_exc())
5959
print("Dataset with name {0} not found, registering new dataset.".format(args.ds_name))
6060
register_dataset = True
61-
end_time_last_slice = datetime.today() - relativedelta(weeks=2)
61+
end_time_last_slice = datetime.today() - relativedelta(weeks=4)
6262

6363
end_time = datetime.utcnow()
6464
train_df = get_noaa_data(end_time_last_slice, end_time)
6565

6666
if train_df.size > 0:
67-
print("Received {0} rows of new data after {0}.".format(
67+
print("Received {0} rows of new data after {1}.".format(
6868
train_df.shape[0], end_time_last_slice))
6969
folder_name = "{}/{:04d}/{:02d}/{:02d}/{:02d}/{:02d}/{:02d}".format(args.ds_name, end_time.year,
7070
end_time.month, end_time.day,

0 commit comments

Comments
 (0)