-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create automatic excel file creation
- Loading branch information
Gordon Blackadder
committed
Aug 9, 2024
1 parent
7857924
commit a29291c
Showing
12 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import os | ||
|
||
from pydantic_schemas.excel_interface import ExcelInterface | ||
|
||
ei = ExcelInterface() | ||
|
||
for metadata_type in ei.get_metadata_types(): | ||
filename = f"excel_sheets/{metadata_type.capitalize()}_metadata.xlsx" | ||
print(f"Writing {metadata_type} outline to {filename}") | ||
if os.path.exists(filename): | ||
os.remove(filename) | ||
ei.write_outline_metadata_to_excel(metadata_type=metadata_type, filename=filename) |
File renamed without changes.