Skip to content

Commit

Permalink
Merge pull request #135 from CCI-MOC/fix_pi_invoice
Browse files Browse the repository at this point in the history
Fixed reference to `self.export_data` in pi-specific invoice
  • Loading branch information
QuanMPhm authored Jan 14, 2025
2 parents a125cd9 + 16a1705 commit 627b2a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions process_report/invoices/pi_specific_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ def export(self):
def _export_pi_invoice(pi):
if pandas.isna(pi):
return
pi_projects = export_data[export_data[invoice.PI_FIELD] == pi]
pi_projects = self.export_data[self.export_data[invoice.PI_FIELD] == pi]
pi_instituition = pi_projects[invoice.INSTITUTION_FIELD].iat[0]
pi_projects.to_csv(
f"{self.name}/{pi_instituition}_{pi} {self.invoice_month}.csv"
)

export_data = self._filter_columns()
self._filter_columns()
if not os.path.exists(
self.name
): # self.name is name of folder storing invoices
Expand Down

0 comments on commit 627b2a8

Please sign in to comment.