Skip to content

Commit

Permalink
update deprecated according to #29
Browse files Browse the repository at this point in the history
  • Loading branch information
j3r3m1 committed Jun 15, 2023
1 parent 107ef6b commit 621ba48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/URock/InitWindField.py
Original file line number Diff line number Diff line change
Expand Up @@ -2953,7 +2953,7 @@ def setInitialWindField(cursor, initializedWindFactorTable, gridPoint,
verticalProfileFile = verticalProfileFile)

# Insert the initial vertical wind profile values into a table
valuesForEachRowProfile = [str(i)+","+str(j) for i, j in verticalWindSpeedProfile[HORIZ_WIND_SPEED].iteritems()]
valuesForEachRowProfile = [str(i)+","+str(j) for i, j in verticalWindSpeedProfile[HORIZ_WIND_SPEED].items()]
cursor.execute("""
DROP TABLE IF EXISTS {0};
CREATE TABLE {0}({1} INTEGER, {2} DOUBLE);
Expand Down Expand Up @@ -2982,7 +2982,7 @@ def setInitialWindField(cursor, initializedWindFactorTable, gridPoint,
verticalProfileFile = verticalProfileFile)

# ... and insert it into a table
valuesForEachRowBuilding = [str(i)+","+str(j) for i, j in buildingHeightWindSpeed.set_index(Z)[HORIZ_WIND_SPEED].iteritems()]
valuesForEachRowBuilding = [str(i)+","+str(j) for i, j in buildingHeightWindSpeed.set_index(Z)[HORIZ_WIND_SPEED].items()]
cursor.execute("""
DROP TABLE IF EXISTS {0};
CREATE TABLE {0}({1} INTEGER, {2} DOUBLE);
Expand Down

1 comment on commit 621ba48

@bbrangeo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.