Skip to content

Commit

Permalink
Deal with some components having data but not all
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisherlevine committed Jun 28, 2023
1 parent 83fdfa8 commit b84f150
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/lsst/summit/utils/tmaUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,12 @@ def _mergeData(self, data):

# Iterate over the keys and merge the corresponding DataFrames
for key, df in data.items():
if df.empty:
# Must skip the df if it's empty, otherwise the merge will fail
# due to lack of private_sndStamp. Because other axes might
# still be in motion, so we still want to merge what we have
continue

originalRowCounter += len(df)
component = self._shortName(key) # Add suffix to column names to identify the source
suffix = '_' + component
Expand Down

0 comments on commit b84f150

Please sign in to comment.