Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checks / tests for AFIDs coord array shape #10

Merged
merged 2 commits into from
Aug 1, 2023

Commits on Aug 1, 2023

  1. Add checks / tests for AFIDs coord array shape

    Check to make sure the number of afids (shape[0]) and the spatial
    dimensions (shape[1]) match what is expected from the template. This
    commit additionally adds tests to check for the invalid cases by drawing
    from invalid integers and asserting a substring of the error message is
    raised.
    kaitj committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    ce6f9e2 View commit details
    Browse the repository at this point in the history
  2. use NamedTemporaryFile as context manager

    - Removed `delete=False` in tests where temp file is not explicitly
    removed
    kaitj committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    f964fd7 View commit details
    Browse the repository at this point in the history