Skip to content

Commit

Permalink
Merge pull request #29 from gisce/FIX_extract_fields
Browse files Browse the repository at this point in the history
Retorna los campos correctos en data_fields
  • Loading branch information
tinogis authored Jul 12, 2023
2 parents 10ae9f2 + aea5af1 commit d29a7b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions powerprofile/powerprofile.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,9 @@ def extract(self, cols):

new.curve.rename(columns=cols, inplace=True)

new_data_fields = [x for x in final_trans_cols if x != self.datetime_field]
new.data_fields = new_data_fields

return new

# Dump data
Expand Down

0 comments on commit d29a7b3

Please sign in to comment.