settings

Global settings for the package.

class sage_acsv.settings.ACSVSettings[source]

Global settings for the package.

This class is used to store global settings for the package. It provides a mechanism to set and get the default settings.

EXAMPLES:

sage: from sage_acsv import ACSVSettings
sage: list(ACSVSettings.Output)
[<OutputFormat.ASYMPTOTIC: 'asymptotic'>,
 <OutputFormat.SYMBOLIC: 'symbolic'>,
 <OutputFormat.TUPLE: 'tuple'>]
sage: ACSVSettings.Output.ASYMPTOTIC
<OutputFormat.ASYMPTOTIC: 'asymptotic'>
sage: ACSVSettings.set_default_output_format("tuple")
sage: ACSVSettings.get_default_output_format()
<OutputFormat.TUPLE: 'tuple'>
sage: ACSVSettings.set_default_output_format("symbolic")
sage: ACSVSettings.get_default_output_format()
<OutputFormat.SYMBOLIC: 'symbolic'>
sage: ACSVSettings.set_default_output_format()
sage: ACSVSettings.get_default_output_format()
<OutputFormat.ASYMPTOTIC: 'asymptotic'>
Groebner

alias of GroebnerBackend

Kronecker

alias of KroneckerBackend

MAX_MIN_CRIT_RETRIES = 5
Output

alias of OutputFormat

classmethod get_default_groebner_backend()[source]

Get the default groebner basis backend.

classmethod get_default_kronecker_backend()[source]

Get the default kronecker representation backend.

classmethod get_default_output_format()[source]

Get the default output format chosen when not explicitly specifying one.

classmethod get_logging_level()[source]

Get the logging level for the package.

classmethod get_macaulay2()[source]

Get the Macaulay2 installation path.

classmethod set_default_groebner_backend(backend)[source]

Set the preferred method for performing Groebner Bases and related computations, including groebner.compute_groebner_basis(), groebner.compute_primary_decomposition(), and groebner.compute_radical().

Will default to singular.

INPUT:

  • backend – a given GroebnerBackend, a string identifying one, or None to restore the default behavior.

classmethod set_default_kronecker_backend(backend)[source]

Set the preferred method for computing a Kronecker Representation. Will default to the sage_acsv implementation if not specified.

See _kronecker_representation().

INPUT:

  • backend – a given KroneckerBackend, a string identifying one, or None to restore the default behavior.

classmethod set_default_output_format(output_format=None)[source]

Set the default output format chosen when not explicitly specifying one.

INPUT:

  • output_format – a given OutputFormat, a string identifying one, or None to restore the default behavior.

classmethod set_logging_level(level)[source]

Set the logging level for the package.

INPUT:

  • level – a logging level.

EXAMPLES:

sage: from sage_acsv import ACSVSettings
sage: import logging
sage: ACSVSettings.set_logging_level(logging.DEBUG)
sage: ACSVSettings.get_logging_level()
10
sage: ACSVSettings.set_logging_level(logging.INFO)
sage: ACSVSettings.get_logging_level()
20
classmethod set_macaulay2_path(path)[source]

Set the path of the Macaulay2 executable.

INPUT:

  • path – a filepath string or \(None\) to run from anywhere

class sage_acsv.settings.GroebnerBackend(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Options for computing Groebner Bases and related ideal functions groebner.compute_groebner_basis(), groebner.compute_primary_decomposition(), and groebner.critical_points().

See also:

MACAULAY2 = 'macaulay2'
SINGULAR = 'singular'
class sage_acsv.settings.KroneckerBackend(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Options for computing Kronecker representations determined by contributing_points_combinatorial(), minimal_critical_points_combinatorial(), and critical_points().

See also:

MSOLVE = 'msolve'
SAGE_ACSV = 'sage_acsv'
class sage_acsv.settings.OutputFormat(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Output options for displaying the asymptotic behavior determined by diagonal_asymptotics_combinatorial().

See also:

ASYMPTOTIC = 'asymptotic'
SYMBOLIC = 'symbolic'
TUPLE = 'tuple'