Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions idtap/classes/phrase.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,31 +292,6 @@ def _validate_parameter_values(self, opts: Dict[str, Any]) -> None:
if len(dur_array) > 0 and sum(dur_array) == 0:
raise ValueError("'dur_array' cannot have all zero values")

# Validate grid structure consistency
if 'trajectory_grid' in opts and 'instrumentation' in opts:
trajectory_grid = opts['trajectory_grid']
instrumentation = opts['instrumentation']
if len(trajectory_grid) != len(instrumentation):
import warnings
warnings.warn(f"trajectory_grid has {len(trajectory_grid)} tracks but instrumentation has {len(instrumentation)} instruments. "
"These should typically match.", UserWarning)

if 'chikari_grid' in opts and 'instrumentation' in opts:
chikari_grid = opts['chikari_grid']
instrumentation = opts['instrumentation']
if len(chikari_grid) != len(instrumentation):
import warnings
warnings.warn(f"chikari_grid has {len(chikari_grid)} tracks but instrumentation has {len(instrumentation)} instruments. "
"These should typically match.", UserWarning)

if 'groups_grid' in opts and 'instrumentation' in opts:
groups_grid = opts['groups_grid']
instrumentation = opts['instrumentation']
if len(groups_grid) != len(instrumentation):
import warnings
warnings.warn(f"groups_grid has {len(groups_grid)} tracks but instrumentation has {len(instrumentation)} instruments. "
"These should typically match.", UserWarning)

# Validate categorization grid structure
if 'categorization_grid' in opts and opts['categorization_grid'] is not None:
for i, cat in enumerate(opts['categorization_grid']):
Expand Down
Loading