Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • P pykat
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • finesse
  • pykat
  • Issues
  • #3
Closed
Open
Created Apr 27, 2016 by Daniel Brown@ddbOwner

Add more testing for maps

In pykat/test/test_scripts/physics/test_maps.py we need to add checks to ensure that each of the methods are working. The script should check that all the various maps get created without exceptions. Currently this is only simply written for curvedmap.

Methods that generate a numerical output should print the result (assuming it is a small array of numbers) and compare them to values known to be true using assert, e.g.:

reference =  [1,2,3,4]
output = method.compute()

assert(reference == output)

For large data save known output as numpy file which is loaded.

There are now various map format readers. A format from each should be included in the test folder and a script written to read the maps.

Assignee
Assign to
Time tracking