Commit 951a578
feat: Add XLSX support to MSD Workbench parser (#1154)
## Summary
- Added support for parsing XLSX files in the MSD Workbench parser
- Parser now accepts .xlsx files in addition to existing .csv and .txt
formats
- XLSX files are read from the "Workbench data" sheet using pandas with
openpyxl engine
## Changes
- Updated `SUPPORTED_EXTENSIONS` in `MSDWorkbenchReader` to include
"xlsx"
- Added conditional logic to handle XLSX files differently from CSV/TXT
files
- Created sanitized test XLSX file with fake data (no customer-specific
information)
- Generated expected JSON output for the test file
## Test plan
- [x] Added test case with XLSX file (`test_msd_workbench_xlsx.xlsx`)
- [x] All existing tests continue to pass
- [x] Linting and type checking pass
- [x] Parser correctly reads and processes XLSX files from the
"Workbench data" sheet
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.1 <noreply@anthropic.com>1 parent a89c1f7 commit 951a578
4 files changed
Lines changed: 2264 additions & 2 deletions
File tree
- src/allotropy/parsers/msd_workbench
- tests/parsers/msd_workbench/testdata
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
| |||
0 commit comments