IAP GITLAB

Skip to content
Snippets Groups Projects

Improved handling of corsika.Library

Merged Alan Coleman requested to merge 718-make-io-library-aware-of-expected-content into master

Closes #718 (closed)

This update handles "unknown" directories by simply skipping them instead of throwing an error. For example,

In [2]: lib = corsika.Library("test_dir")
[WARNING] - corsika - Could not find a configuration file in test_dir/interaction_hist. Skipping sub-directory
[WARNING] - corsika - An error occured loading a RadioProcess: single positional indexer is out-of-bounds
[WARNING] - corsika - Unable to instantiate an instance of 'RadioProcess' for a process called 'CoREAS'. Skipping 'CoREAS'
[WARNING] - corsika - 'RadioProcess' object has no attribute '_RadioProcess__data'
[WARNING] - corsika - An error occured loading a RadioProcess: single positional indexer is out-of-bounds
[WARNING] - corsika - Unable to instantiate an instance of 'RadioProcess' for a process called 'ZHS'. Skipping 'ZHS'
[WARNING] - corsika - 'RadioProcess' object has no attribute '_RadioProcess__data'

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading