Skip to content

Ignore all-blank columns when loading projects (#1985)#2586

Open
akenmorris wants to merge 4 commits into
masterfrom
amorris/1985-ignore-blank-columns
Open

Ignore all-blank columns when loading projects (#1985)#2586
akenmorris wants to merge 4 commits into
masterfrom
amorris/1985-ignore-blank-columns

Conversation

@akenmorris

Copy link
Copy Markdown
Contributor

Copy/pasted spreadsheets often leave an orphaned header (e.g. "world_particles_femur") whose cells are all blank. Previously this created a phantom domain and blank particle-file reads, making the project fail to load.

ProjectReader::load_subjects now drops any column that is blank for every subject before parsing, so orphaned all-blank headers are ignored. Applies to both the Excel and JSON readers via the shared base class.

Adds ProjectTests.ignore_blank_columns_test with a fixture exercising a phantom all-blank domain and an all-blank extra column.

Copy/pasted spreadsheets often leave an orphaned header (e.g.
"world_particles_femur") whose cells are all blank. Previously this
created a phantom domain and blank particle-file reads, making the
project fail to load.

ProjectReader::load_subjects now drops any column that is blank for
every subject before parsing, so orphaned all-blank headers are
ignored. Applies to both the Excel and JSON readers via the shared
base class.

Adds ProjectTests.ignore_blank_columns_test with a fixture exercising
a phantom all-blank domain and an all-blank extra column.
…-blank-columns

# Conflicts:
#	Testing/ProjectTests/ProjectTests.cpp
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.

1 participant