Skip to content

Conversation

@Bankso
Copy link
Collaborator

@Bankso Bankso commented Aug 14, 2025

  • Adjusted code to ensure temp_df is created even if the DSP does not need to be updated. Addresses an UnboundLocalError encountered 7/31/25 when adding files to a dataset
  • Added code to filter based on file createdOn date, using the DSP Planned Upload Date field in the Data Sharing Plan. This allows us to create datasets before or after a cutoff date, which is helpful if files of the same type/format are being continuously added to a folder or if files added before/after a specific date need to be selected for a dataset
  • Added additional input options: -f: filter based on planned upload date; -a: select files uploaded after planned upload date (default is before); -c: indicate file version number to select when filtering. If mixed file versions are expected, pass a value of "0" to acquire the latest file versions from Synapse
  • Improved print messages to more accurately describe processes

Bankso added 2 commits August 27, 2025 16:43
Ensure temp_df is created even if the DSP does not need to be updated. Addresses an UnboundLocalError encountered 7/31/25 when adding files to a dataset
Added code to filter based on file createdOn date

Added additional input options: -f: filter based on planned upload date; -a: select files uploaded after planned upload date (default is before); -c: indicate file version number to select when filtering. If mixed file versions are expected, pass a value of "0" to acquire the latest file versions from Synapse

Improved print messages to more accurately describe processes
@Bankso Bankso force-pushed the build-datasets-fix branch from 29c5569 to 34f08eb Compare August 27, 2025 23:43
Added a script to remove files from one or more Synapse datasets, based on a simple CSV file input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants