Skip to content

fix typo IPD QHDA

Thibaud Marie Eric Buffet requested to merge fix_typo_IPD_QHDA into master

Context

Hi Thibaud,

Can you please correct a very simple bug, typo in fact, in HWC_IPD_QHDA.ipynb notebook? It is in the very last cell “6. Save Timestamps in Reference Format (if update needed)”. Just we need to remove the coma in two lines. See the screenshot attached and the correct code in the text below.

Thanks in advance, cheers Zinur

Corrected code:

if not qh_pm_search.source_timestamp_df.empty: !mkdir -p /eos/project/m/mp3/IPD/$circuit_name/QHDA file_name = "{}_QHDA-{}-{}_Reference".format(circuit_name, date_time_qh, analysis_start_time) csv_full_path = '/eos/project/m/mp3/IPD/{}/QHDA/{}.csv'.format(circuit_name, file_name) cell_datetime_timestamp = pd.DataFrame(qh_pm_search.source_timestamp_df.rename(columns={'source': 'Cell'})['Cell'] cell_datetime_timestamp['Timestamp String'] = qh_pm_search.source_timestamp_df['timestamp'].apply(lambda col: Time.to_string_short(col, n_dec_digits=9)) cell_datetime_timestamp['Timestamp'] = qh_pm_search.source_timestamp_df['timestamp'] cell_datetime_timestamp.to_csv(csv_full_path, index=False) print('Reference timestamp table saved to (Windows): ' + '\\cernbox-smb' + csv_full_path.replace('/', '\'))

Merge request reports