IanYeo commited on
Commit
08c66a8
1 Parent(s): e135c70

embed later if

Browse files
Files changed (1) hide show
  1. app.py +20 -18
app.py CHANGED
@@ -137,7 +137,9 @@ st.markdown(
137
  '''
138
  # Convert Revit IDs to GUIDs
139
 
140
- Provide any spreadsheet (using a dropbox link) that has a column of revit IDs. A typical Revit IDS is `60f91daf-3dd7-4283-a86d-24137b73f3da-0001fd0b`. The script will convert the ID to '3CPy6r22DAahSW8AIIobik'.
 
 
141
 
142
 
143
  Select the sheet witin the spreadsheet and the column with the IDs.
@@ -185,25 +187,25 @@ if tabs:
185
  columns,
186
  )
187
 
188
- if selected_column:
189
 
190
- # df['COBieGUID'] = df.apply(compress)
191
- df[selected_column] = df.apply(
192
- revit_id_to_guid,
193
- column=selected_column,
194
- axis=1
195
- )
196
 
197
- st.markdown(
198
- download_button(
199
- df,
200
- 'IFC_GUIDs.xlsx',
201
- 'Download IFC GUIDs sheet',
202
- pickle_it=False,
203
- ),
204
- unsafe_allow_html=True,
205
- )
206
- st.markdown(download_button(df, 'COBieIDs.xlsx', 'Download COBieIDs.xlsx'), unsafe_allow_html=True)
207
 
208
 
209
 
 
137
  '''
138
  # Convert Revit IDs to GUIDs
139
 
140
+ Provide any spreadsheet (using a dropbox link) that has a column of revit IDs.
141
+ A typical Revit IDS is `60f91daf-3dd7-4283-a86d-24137b73f3da-0001fd0b`.
142
+ The script will convert the ID to `3CPy6r22DAahSW8AIIobik`.
143
 
144
 
145
  Select the sheet witin the spreadsheet and the column with the IDs.
 
187
  columns,
188
  )
189
 
190
+ if selected_column:
191
 
192
+ # df['COBieGUID'] = df.apply(compress)
193
+ df[selected_column] = df.apply(
194
+ revit_id_to_guid,
195
+ column=selected_column,
196
+ axis=1
197
+ )
198
 
199
+ st.markdown(
200
+ download_button(
201
+ df,
202
+ 'IFC_GUIDs.xlsx',
203
+ 'Download IFC GUIDs sheet',
204
+ pickle_it=False,
205
+ ),
206
+ unsafe_allow_html=True,
207
+ )
208
+ st.markdown(download_button(df, 'COBieIDs.xlsx', 'Download COBieIDs.xlsx'), unsafe_allow_html=True)
209
 
210
 
211