Skip to content

Commit

Permalink
Merge pull request #1279 from cta-observatory/dataqual_nbook
Browse files Browse the repository at this point in the history
Ensure consistency between the cis and runsummary tables
  • Loading branch information
moralejo authored Jul 22, 2024
2 parents d1498cc + 5509986 commit 21d8f7e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions notebooks/data_quality.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"# files = glob.glob(\"/fefs/aswg/data/real/OSA/DL1DataCheck_LongTerm/v0.10/2023????/DL1_datacheck_2023*.h5\")\n",
"# \n",
"# Example: load all the 2023 files processed (with any version - the latest available for each night): \n",
"files = glob.glob(\"/fefs/aswg/data/real/OSA/DL1DataCheck_LongTerm/night_wise/all/DL1_datacheck_2023*.h5\n",
"files = glob.glob(\"/fefs/aswg/data/real/OSA/DL1DataCheck_LongTerm/night_wise/all/DL1_datacheck_202[1-4]*.h5\")\n",
"\n",
"files.sort()"
]
Expand Down Expand Up @@ -501,8 +501,8 @@
" if r in runlist:\n",
" continue\n",
" print('Removing run', r, 'from runsummary table!')\n",
" \n",
" runsummary = runsummary.drop(np.where(runsummary['runnumber']==r)[0])"
" runsummary.drop(np.where(runsummary['runnumber']==r)[0], inplace=True)\n",
" runsummary.reset_index(inplace=True, drop=True)"
]
},
{
Expand Down Expand Up @@ -1820,6 +1820,14 @@
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "0101cc95",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -1838,7 +1846,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 21d8f7e

Please sign in to comment.