grass.pygrass.tests package — GRASS Python Library documentation

# grass.pygrass.tests package

## Submodules

## grass.pygrass.tests.benchmark module

Created on Sat Jun 16 20:24:56 2012

@author: soeren

class grass.pygrass.tests.benchmark.OptionParser(**kwargs)

  Bases: `OptionParser`

  check_values(values: Values, args: [string])

    -> (values : Values, args : [string])

    Check that the supplied option values and leftover arguments are valid. Returns the option values and leftover arguments (possibly adjusted, possibly completely new – whatever you like). Default implementation just returns the passed-in values; subclasses may override as desired.

class grass.pygrass.tests.benchmark.OptionWithDefault(*opts, **attrs)

  Bases: `Option`

  ATTRS = ['action', 'type', 'dest', 'default', 'nargs', 'const', 'choices', 'callback', 'callback_args', 'callback_kwargs', 'help', 'metavar', 'required']

grass.pygrass.tests.benchmark.get_testdict(testlist)

grass.pygrass.tests.benchmark.get_testlist(loc)

grass.pygrass.tests.benchmark.get_txt(results)

grass.pygrass.tests.benchmark.main(testdict)

  Main function

grass.pygrass.tests.benchmark.mytimer(func, runs=1)

grass.pygrass.tests.benchmark.print_test(testdict)

grass.pygrass.tests.benchmark.run_benchmark(resolution_list, runs, testdict, profile)

grass.pygrass.tests.benchmark.test__RasterRowIO_row_access__add()

grass.pygrass.tests.benchmark.test__RasterRowIO_row_access__if()

grass.pygrass.tests.benchmark.test__RasterRow_row_access__add()

grass.pygrass.tests.benchmark.test__RasterRow_row_access__if()

grass.pygrass.tests.benchmark.test__RasterRow_value_access__add()

grass.pygrass.tests.benchmark.test__RasterRow_value_access__if()

grass.pygrass.tests.benchmark.test__RasterSegment_row_access__add()

grass.pygrass.tests.benchmark.test__RasterSegment_row_access__if()

grass.pygrass.tests.benchmark.test__RasterSegment_value_access__add()

grass.pygrass.tests.benchmark.test__RasterSegment_value_access__if()

grass.pygrass.tests.benchmark.test__mapcalc__add()

grass.pygrass.tests.benchmark.test__mapcalc__if()

## grass.pygrass.tests.set_mapset module

Created on Thu Aug 23 11:07:38 2012

@author: pietro

grass.pygrass.tests.set_mapset.main()

grass.pygrass.tests.set_mapset.read_gisrc(gisrcpath)

Help Index | Topics Index | Keywords Index | Full Index

© 2003-2026 GRASS Development Team, GRASS GIS 8.4.3dev Reference Manual