Closed manuGil closed 1 year ago
I found a couple of issues when configuring the settings:
First there was an error with finding the .xml, despite having the correct path:
OSError: Error reading file 'data-pipelines/data/design-data100/00001_mods.xml': failed to load external entity "data-pipelines/data/design-data100/00001_mods.xml"
Image settings don't seem to do anything, they don't change the size of the output image
When iterating over more than 1 .xml it only outputs images from the 2nd id (e.g. 00002) and not the first
Thank you @Liviavanvliet I will look into this.
@Liviavanvliet
README.md
: https://github.com/AiDAPT-A/OpenDesign-Handbook/tree/pipeline2@manuGil
if __name__ == "__main__":
input_dir = "MY_INPUT_DIR"
# List files in the directory
file_list = os.listdir(input_dir)
# Iterate over the files
for filename in file_list:
if filename.endswith("_mods.xml"):
entry_id = os.path.splitext(filename)[0] # Extract the filename
entry_id = entry_id[:-5] # Removes _mods leaving only the id
main(entry_id)
Use cases: