Skip to content

Commit

Permalink
Removed unneeded conversion to Series
Browse files Browse the repository at this point in the history
  • Loading branch information
moralejo committed Jan 24, 2025
1 parent 43bb86e commit 9d1c1d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lstchain/reco/dl1_to_dl2.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ def add_zd_interpolation_info(dl2table, training_pointings):

# Update the dataframe:
with pd.option_context('mode.copy_on_write', True):
dl2table = dl2table.assign(alt0=pd.Series(closest_alt).values,
alt1=pd.Series(second_closest_alt).values,
w0=pd.Series(w0).values,
w1=pd.Series(w1).values)
dl2table = dl2table.assign(alt0=closest_alt,

Check warning on line 120 in lstchain/reco/dl1_to_dl2.py

View check run for this annotation

Codecov / codecov/patch

lstchain/reco/dl1_to_dl2.py#L119-L120

Added lines #L119 - L120 were not covered by tests
alt1=second_closest_alt,
w0=w0,
w1=w1)

return dl2table

Check warning on line 125 in lstchain/reco/dl1_to_dl2.py

View check run for this annotation

Codecov / codecov/patch

lstchain/reco/dl1_to_dl2.py#L125

Added line #L125 was not covered by tests

Expand Down

0 comments on commit 9d1c1d3

Please sign in to comment.