Skip to content

Commit

Permalink
Revert "Add some debug prints"
Browse files Browse the repository at this point in the history
This reverts commit 8938bfb.
  • Loading branch information
ptormene committed Aug 1, 2023
1 parent 4590fb5 commit c904cbc
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions openquake/calculators/event_based_damage.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,6 @@ def _store_connectivity_analysis_results(self, conn_results):
display_name=DISPLAY_NAME['infra-avg_loss'])
logging.info(
'Stored avarage connectivity loss (infra-avg_loss)')
print(avg_df)
print(avg_df.dtypes)
if 'event_connectivity_loss_eff' in conn_results:
# FIXME
print(conn_results['event_connectivity_loss_eff'])
Expand All @@ -322,56 +320,44 @@ def _store_connectivity_analysis_results(self, conn_results):
logging.info(
'Stored efficiency loss by event (infra-event_efl)')
if 'event_connectivity_loss_pcl' in conn_results:
print(conn_results['event_connectivity_loss_pcl'])
print(conn_results['event_connectivity_loss_pcl'].dtypes)
self.datastore.create_df(
'infra-event_pcl',
conn_results['event_connectivity_loss_pcl'],
display_name=DISPLAY_NAME['infra-event_pcl'])
logging.info(
'Stored partial connectivity loss by event (infra-event_pcl)')
if 'event_connectivity_loss_wcl' in conn_results:
print(conn_results['event_connectivity_loss_wcl'])
print(conn_results['event_connectivity_loss_wcl'].dtypes)
self.datastore.create_df(
'infra-event_wcl',
conn_results['event_connectivity_loss_wcl'],
display_name=DISPLAY_NAME['infra-event_wcl'])
logging.info(
'Stored weighted connectivity loss by event (infra-event_wcl)')
if 'event_connectivity_loss_ccl' in conn_results:
print(conn_results['event_connectivity_loss_ccl'])
print(conn_results['event_connectivity_loss_ccl'].dtypes)
self.datastore.create_df(
'infra-event_ccl',
conn_results['event_connectivity_loss_ccl'],
display_name=DISPLAY_NAME['infra-event_ccl'])
logging.info(
'Stored complete connectivity loss by event (infra-event_ccl)')
if 'taz_cl' in conn_results:
print(conn_results['taz_cl'])
conn_results['taz_cl'].id = conn_results['taz_cl'].id.astype('|S')
print(conn_results['taz_cl'].dtypes)
self.datastore.create_df(
'infra-taz_cl',
conn_results['taz_cl'],
display_name=DISPLAY_NAME['infra-taz_cl'])
logging.info(
'Stored connectivity loss of TAZ nodes (taz_cl)')
if 'dem_cl' in conn_results:
print(conn_results['dem_cl'])
conn_results['dem_cl'].id = conn_results['dem_cl'].id.astype('|S')
print(conn_results['dem_cl'].dtypes)
self.datastore.create_df(
'infra-dem_cl',
conn_results['dem_cl'],
display_name=DISPLAY_NAME['infra-dem_cl'])
logging.info(
'Stored connectivity loss of demand nodes (dem_cl)')
if 'node_el' in conn_results:
print(conn_results['node_el'])
conn_results['node_el'].id = conn_results['node_el'].id.astype('|S')
print(conn_results['node_el'].dtypes)
self.datastore.create_df(
'infra-node_el',
conn_results['node_el'],
Expand Down

0 comments on commit c904cbc

Please sign in to comment.