Skip to content

Commit

Permalink
Merge pull request #29 from TACC/28-get_indicated_received-relies-on-…
Browse files Browse the repository at this point in the history
…outdated-column-bids_validation

Switch bids_validation to bids
  • Loading branch information
mepearson authored Jul 13, 2024
2 parents 2a69169 + e00dfcd commit b9b1f8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def calculate_overdue(BIDS, visit, surgery_week):
overdue='No'
return overdue

def get_indicated_received(imaging_dataframe, validation_column = 'bids_validation', validation_value = 1):
def get_indicated_received(imaging_dataframe, validation_column = 'bids', validation_value = 1):
"""The get_indicated_received(imaging_dataframe) function takes the imaging log data frame and lengthens the
table to convert the scan into a variable while preserving columns for the indicated and received value of each scan.
Validation columns parameter should be a lits of tuples where the first tuple value is the column name and the
Expand All @@ -68,7 +68,7 @@ def get_indicated_received(imaging_dataframe, validation_column = 'bids_validati

# Select columns, and create long dataframes from those columns, pivoting the scan into a variable
# Select and pivot indicated columns
index_cols = ['site','subject_id','visit','acquisition_week','Surgery Week','bids_validation', 'dicom']
index_cols = ['site','subject_id','visit','acquisition_week','Surgery Week','bids', 'dicom']
index_new = ['Site', 'Subject', 'Visit','Acquisition Week','Surgery Week', 'BIDS','DICOM']

indicated_cols = ['T1 Indicated',
Expand Down

0 comments on commit b9b1f8c

Please sign in to comment.