Skip to content

Commit

Permalink
Fixed the code to ensure consistency between two tables (keep only ru…
Browse files Browse the repository at this point in the history
…ns present in both)
  • Loading branch information
moralejo committed Jul 19, 2024
1 parent a3fe5ee commit 6b73175
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 6b73175

Please sign in to comment.