Example #1
0
from incidence_structures import (IncidenceStructure,
                          IncidenceStructureFromMatrix)

from covering_design import (CoveringDesign,
                             schonheim,
                             trivial_covering_design)

import design_catalog as designs

from sage.misc.superseded import deprecated_callable_import
deprecated_callable_import(14499,
                           'sage.combinat.designs.block_design',
                           globals(),
                           locals(),
                           ["ProjectiveGeometryDesign",
                            "AffineGeometryDesign",
                            "WittDesign",
                            "HadamardDesign",
                            "BlockDesign_generic"],
                           ("This method soon will not be available in that "
                            "way anymore. To use it, you can now call it by "
                            "typing designs.%(name)s"))
deprecated_callable_import(14499,
                           'sage.combinat.designs.covering_design',
                           globals(),
                           locals(),
                           ["best_known_covering_design_www"],
                           ("This method soon will not be available in that "
                            "way anymore. To use it, you can now call it by "
                            "typing designs.best_known_covering_design_from_LJCR"))

del deprecated_callable_import
Example #2
0
from sage.combinat.designs.steiner_quadruple_systems import steiner_quadruple_system

from sage.combinat.designs.covering_design import best_known_covering_design_www as best_known_covering_design_from_LJCR

from sage.combinat.designs.latin_squares import mutually_orthogonal_latin_squares

from sage.combinat.designs.orthogonal_arrays import transversal_design, incomplete_orthogonal_array

from sage.combinat.designs.difference_family import difference_family
from difference_matrices import difference_matrix

from sage.misc.superseded import deprecated_callable_import
deprecated_callable_import(
    19096, 'sage.combinat.designs.incidence_structures', globals(), locals(),
    ["IncidenceStructure"],
    ("This alias will soon be removed. You can call the same object by removing 'designs.' in your command"
     ))

Hypergraph = BlockDesign = IncidenceStructure  # just an alias
from sage.combinat.designs.bibd import balanced_incomplete_block_design, steiner_triple_system
from sage.combinat.designs.resolvable_bibd import resolvable_balanced_incomplete_block_design, kirkman_triple_system
from sage.combinat.designs.group_divisible_designs import group_divisible_design

from orthogonal_arrays import OAMainFunctions as orthogonal_arrays

# When this deprecated function is removed, remove the handling of k=None in the
# function orthogonal_arrays.orthogonal_array()
deprecated_callable_import(
    17034, 'sage.combinat.designs.orthogonal_arrays', globals(), locals(),
    ["orthogonal_array"],
Example #3
0
from sloane_functions import sloane

from root_system.all import *
from sf.all import *
from ncsf_qsym.all import *
from ncsym.all import *
from matrices.all import *
# Posets
from posets.all import *

from sage.misc.superseded import deprecated_callable_import
deprecated_callable_import(6637,
                           'sage.combinat.backtrack',
                           globals(),
                           locals(),
                           ["SearchForest", 
                            "TransitiveIdeal", 
                            "TransitiveIdealGraded"],
                           ("This class soon will not be available in that "
                            "way anymore. Use RecursivelyEnumeratedSet "
                            "instead."))

# Cluster Algebras and Quivers
from cluster_algebra_quiver.all import *

#import lrcalc

import ranker

from integer_vector import IntegerVectors
from integer_vector_weighted import WeightedIntegerVectors
from integer_vectors_mod_permgroup import IntegerVectorsModPermutationGroup
Example #4
0
File: all.py Project: TaraFife/sage
            "walsh_matrix"])

from sage.misc.superseded import deprecated_callable_import

deprecated_callable_import(19315,
            "sage.coding.code_bounds",
            globals(),
            locals(),
            ["codesize_upper_bound",
            "dimension_upper_bound",
            "volume_hamming",
            "gilbert_lower_bound",
            "plotkin_upper_bound",
            "griesmer_upper_bound",
            "elias_upper_bound",
            "hamming_upper_bound",
            "singleton_upper_bound",
            "gv_info_rate",
            "entropy",
            "gv_bound_asymp",
            "hamming_bound_asymp",
            "singleton_bound_asymp",
            "plotkin_bound_asymp",
            "elias_bound_asymp",
            "mrrw1_bound_asymp"],
            ("This method soon will not be available in that way."
            "Please call codes.bounds.%(name)s instead"))

lazy_import("sage.coding.linear_code", ["LinearCode",
            "LinearCodeFromVectorSpace",
            "best_known_linear_code",
Example #5
0
from sage.combinat.designs.latin_squares import mutually_orthogonal_latin_squares

from sage.combinat.designs.orthogonal_arrays import transversal_design, incomplete_orthogonal_array


from sage.combinat.designs.difference_family import difference_family
from difference_matrices import difference_matrix

from sage.combinat.designs.incidence_structures import IncidenceStructure
BlockDesign = IncidenceStructure    # just an alias
from sage.combinat.designs.bibd import balanced_incomplete_block_design, steiner_triple_system

# deprecated in june 2014 (#16446)
from sage.misc.superseded import deprecated_function_alias, deprecated_callable_import
BalancedIncompleteBlockDesign = deprecated_function_alias(16446,
        balanced_incomplete_block_design)

from orthogonal_arrays import OAMainFunctions as orthogonal_arrays

# When this deprecated function is removed, remove the handling of k=None in the
# function orthogonal_arrays.orthogonal_array()
deprecated_callable_import(17034,
                           'sage.combinat.designs.orthogonal_arrays',
                           globals(),
                           locals(),
                           ["orthogonal_array"],
                           ("This function will soon be removed. Use the designs.orthogonal_arrays.* functions instead"))

# We don't want this to appear in designs.<tab>
del deprecated_function_alias
Example #6
0
from lyndon_word import LyndonWord, LyndonWords, StandardBracketedLyndonWords
from dyck_word import DyckWords, DyckWord
from sloane_functions import sloane

from root_system.all import *
from sf.all import *
from ncsf_qsym.all import *
from ncsym.all import *
from matrices.all import *
# Posets
from posets.all import *

from sage.misc.superseded import deprecated_callable_import
deprecated_callable_import(
    6637, 'sage.combinat.backtrack', globals(), locals(),
    ["SearchForest", "TransitiveIdeal", "TransitiveIdealGraded"],
    ("This class soon will not be available in that "
     "way anymore. Use RecursivelyEnumeratedSet "
     "instead."))

# Cluster Algebras and Quivers
from cluster_algebra_quiver.all import *

#import lrcalc

import ranker

from integer_vector import IntegerVectors
from integer_vector_weighted import WeightedIntegerVectors
from integer_vectors_mod_permgroup import IntegerVectorsModPermutationGroup

from finite_class import FiniteCombinatorialClass
Example #7
0
from sage.combinat.designs.orthogonal_arrays import transversal_design, incomplete_orthogonal_array

from sage.combinat.designs.difference_family import difference_family
from difference_matrices import difference_matrix

from sage.combinat.designs.incidence_structures import IncidenceStructure
Hypergraph = BlockDesign = IncidenceStructure  # just an alias
from sage.combinat.designs.bibd import balanced_incomplete_block_design, steiner_triple_system
from sage.combinat.designs.resolvable_bibd import resolvable_balanced_incomplete_block_design, kirkman_triple_system
from sage.combinat.designs.group_divisible_designs import group_divisible_design

# deprecated in june 2014 (#16446)
from sage.misc.superseded import deprecated_function_alias, deprecated_callable_import
BalancedIncompleteBlockDesign = deprecated_function_alias(
    16446, balanced_incomplete_block_design)

from orthogonal_arrays import OAMainFunctions as orthogonal_arrays

# When this deprecated function is removed, remove the handling of k=None in the
# function orthogonal_arrays.orthogonal_array()
deprecated_callable_import(
    17034, 'sage.combinat.designs.orthogonal_arrays', globals(), locals(),
    ["orthogonal_array"],
    ("This function will soon be removed. Use the designs.orthogonal_arrays.* functions instead"
     ))

# We don't want this to appear in designs.<tab>
del deprecated_function_alias
del deprecated_callable_import
Example #8
0
#  as published by the Free Software Foundation; either version 2 of
#  the License, or (at your option) any later version.
#                  http://www.gnu.org/licenses/
#*****************************************************************************


from sql_db import SQLQuery, SQLDatabase

from conway import ConwayPolynomials

from cremona import CremonaDatabase

# Trac #10107
from sage.misc.superseded import deprecated_callable_import
deprecated_callable_import(10107, 'sage.databases.cremona', globals(), locals(), [
        'cremona_letter_code', 'parse_cremona_label',
        'old_cremona_letter_code', 'is_optimal_id' ])
del deprecated_callable_import


from jones import JonesDatabase

from stein_watkins import SteinWatkinsAllData, SteinWatkinsPrimeData

from install import database_install

from sloane import sloane_sequence, sloane_find, SloaneEncyclopedia

from symbolic_data import SymbolicData

# commented out, since it's broken -- nobody updated the parser
Example #9
0
File: all.py Project: Etn40ff/sage
from sage.misc.superseded import deprecated_callable_import
deprecated_callable_import(15445,
                           'sage.coding.code_constructions',
                           globals(),
                           locals(),
                           ["BinaryGolayCode",
                            "BCHCode",
                            "CyclicCode",
                            "CyclicCodeFromGeneratingPolynomial",
                            "CyclicCodeFromCheckPolynomial",
                            "DuadicCodeEvenPair",
                            "DuadicCodeOddPair",
                            "ExtendedBinaryGolayCode",
                            "ExtendedQuadraticResidueCode",
                            "ExtendedTernaryGolayCode",
                            "HammingCode",
                            "LinearCodeFromCheckMatrix",
                            "QuadraticResidueCode",
                            "QuadraticResidueCodeEvenPair",
                            "QuadraticResidueCodeOddPair",
                            "RandomLinearCode",
                            "ReedSolomonCode",
                            "TernaryGolayCode",
                            "ToricCode",
                            "TrivialCode",
                            "WalshCode"],
                           ("This method soon will not be available in that "
                            "way anymore. To use it, you can now call it by "
                            "typing codes.%(name)s"))

deprecated_callable_import(15445,
Example #10
0
File: all.py Project: shrutig/sage
from sage.misc.lazy_import import lazy_import

from ag_code import ag_code

from code_constructions import (permutation_action, walsh_matrix,
                                cyclotomic_cosets)

from sage.misc.superseded import deprecated_callable_import
deprecated_callable_import(
    15445, 'sage.coding.code_constructions', globals(), locals(), [
        "BinaryGolayCode", "BCHCode", "CyclicCode",
        "CyclicCodeFromGeneratingPolynomial", "CyclicCodeFromCheckPolynomial",
        "DuadicCodeEvenPair", "DuadicCodeOddPair", "ExtendedBinaryGolayCode",
        "ExtendedQuadraticResidueCode", "ExtendedTernaryGolayCode",
        "HammingCode", "LinearCodeFromCheckMatrix", "QuadraticResidueCode",
        "QuadraticResidueCodeEvenPair", "QuadraticResidueCodeOddPair",
        "RandomLinearCode", "ReedSolomonCode", "TernaryGolayCode", "ToricCode",
        "TrivialCode", "WalshCode"
    ], ("This method soon will not be available in that "
        "way anymore. To use it, you can now call it by "
        "typing codes.%(name)s"))

deprecated_callable_import(15445, 'sage.coding.guava', globals(), locals(), [
    "BinaryReedMullerCode", "QuasiQuadraticResidueCode",
    "RandomLinearCodeGuava"
], ("This method soon will not be available in that "
    "way anymore. To use it, you can now call it by "
    "typing codes.%(name)s"))

from code_bounds import (codesize_upper_bound, dimension_upper_bound,
                         volume_hamming, gilbert_lower_bound,
Example #11
0
from incidence_structures import IncidenceStructure as Hypergraph

from covering_design import (CoveringDesign,
                             schonheim,
                             trivial_covering_design)

import design_catalog as designs

from sage.misc.superseded import deprecated_callable_import
deprecated_callable_import(14499,
                           'sage.combinat.designs.block_design',
                           globals(),
                           locals(),
                           ["ProjectiveGeometryDesign",
                            "AffineGeometryDesign",
                            "WittDesign",
                            "HadamardDesign"],
                           ("This method soon will not be available in that "
                            "way anymore. To use it, you can now call it by "
                            "typing designs.%(name)s"))
deprecated_callable_import(14499,
                           'sage.combinat.designs.covering_design',
                           globals(),
                           locals(),
                           ["best_known_covering_design_www"],
                           ("This method soon will not be available in that "
                            "way anymore. To use it, you can now call it by "
                            "typing designs.best_known_covering_design_from_LJCR"))

del deprecated_callable_import
Example #12
0
            "walsh_matrix"])

from sage.misc.superseded import deprecated_callable_import

deprecated_callable_import(19315,
            "sage.coding.code_bounds",
            globals(),
            locals(),
            ["codesize_upper_bound",
            "dimension_upper_bound",
            "volume_hamming",
            "gilbert_lower_bound",
            "plotkin_upper_bound",
            "griesmer_upper_bound",
            "elias_upper_bound",
            "hamming_upper_bound",
            "singleton_upper_bound",
            "gv_info_rate",
            "entropy",
            "gv_bound_asymp",
            "hamming_bound_asymp",
            "singleton_bound_asymp",
            "plotkin_bound_asymp",
            "elias_bound_asymp",
            "mrrw1_bound_asymp"],
            ("This method soon will not be available in that way."
            "Please call codes.bounds.%(name)s instead"))

lazy_import("sage.coding.linear_code", ["LinearCode",
            "LinearCodeFromVectorSpace",
            "best_known_linear_code",
Example #13
0
File: all.py Project: ProgVal/sage
from sage.misc.lazy_import import lazy_import
lazy_import("sage.numerical.optimize",
            ["find_fit", "find_local_maximum", "find_local_minimum",
             "find_root", "linear_program", "minimize", "minimize_constrained"])
lazy_import("sage.numerical.mip", ["MixedIntegerLinearProgram"])
lazy_import("sage.numerical.sdp", ["SemidefiniteProgram"])
lazy_import("sage.numerical.backends.generic_backend", ["default_mip_solver"])
lazy_import("sage.numerical.backends.generic_sdp_backend", ["default_sdp_solver"])

lazy_import("sage.numerical.interactive_simplex_method",
            ["InteractiveLPProblem", "InteractiveLPProblemStandardForm"])

from sage.misc.superseded import deprecated_callable_import

# Deprecation (#17867) -- two lines at the end of
# sage.numerical.interactive_simplex_method should be removed too.
deprecated_callable_import(17867,
                           "sage.numerical.interactive_simplex_method",
                           globals(),
                           locals(),
                           ["LPProblem"],
                           ("This class meant for **educational purposes only** has been renamed to InteractiveLPProblem"))

deprecated_callable_import(17867,
                           "sage.numerical.interactive_simplex_method",
                           globals(),
                           locals(),
                           ["LPProblemStandardForm"],
                           ("This class meant for **educational purposes only** has been renamed to InteractiveLPProblemStandardForm"))
Example #14
0
from optimize import (find_fit, find_local_maximum, find_local_minimum,
                      find_root, linear_program, minimize,
                      minimize_constrained)
from sage.numerical.mip import MixedIntegerLinearProgram
from sage.numerical.backends.generic_backend import default_mip_solver

from sage.misc.lazy_import import lazy_import
lazy_import("sage.numerical.interactive_simplex_method",
            ["InteractiveLPProblem", "InteractiveLPProblemStandardForm"])

from sage.misc.superseded import deprecated_callable_import

# Deprecation (#17867) -- two lines at the end of
# sage.numerical.interactive_simplex_method should be removed too.
deprecated_callable_import(
    17867, "sage.numerical.interactive_simplex_method", globals(), locals(),
    ["LPProblem"],
    ("This class meant for **educational purposes only** has been renamed to InteractiveLPProblem"
     ))

deprecated_callable_import(
    17867, "sage.numerical.interactive_simplex_method", globals(), locals(),
    ["LPProblemStandardForm"],
    ("This class meant for **educational purposes only** has been renamed to InteractiveLPProblemStandardForm"
     ))
Example #15
0
from sage.combinat.designs.covering_design import best_known_covering_design_www as best_known_covering_design_from_LJCR

from sage.combinat.designs.latin_squares import mutually_orthogonal_latin_squares

from sage.combinat.designs.orthogonal_arrays import transversal_design, incomplete_orthogonal_array


from sage.combinat.designs.difference_family import difference_family
from difference_matrices import difference_matrix

from sage.misc.superseded import deprecated_callable_import

deprecated_callable_import(
    19096,
    "sage.combinat.designs.incidence_structures",
    globals(),
    locals(),
    ["IncidenceStructure"],
    ("This alias will soon be removed. You can call the same object by removing 'designs.' in your command"),
)

Hypergraph = BlockDesign = IncidenceStructure  # just an alias
from sage.combinat.designs.bibd import balanced_incomplete_block_design, steiner_triple_system
from sage.combinat.designs.resolvable_bibd import resolvable_balanced_incomplete_block_design, kirkman_triple_system
from sage.combinat.designs.group_divisible_designs import group_divisible_design

from orthogonal_arrays import OAMainFunctions as orthogonal_arrays

# When this deprecated function is removed, remove the handling of k=None in the
# function orthogonal_arrays.orthogonal_array()
deprecated_callable_import(
    17034,