Skip to content

Commit

Permalink
Merge pull request #28 from videlec/copyright
Browse files Browse the repository at this point in the history
Switch to GLP v3
  • Loading branch information
saraedum authored Nov 8, 2023
2 parents 17e93fe + 5292ce7 commit 3050c74
Show file tree
Hide file tree
Showing 18 changed files with 269 additions and 117 deletions.
17 changes: 17 additions & 0 deletions veerer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@
A Python module to deal with Veering triangulation and L^infinity
Delaunay decomposition of surfaces.
"""
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

from .constants import RED, BLUE, PURPLE, GREEN, HORIZONTAL, VERTICAL, RIGHT, LEFT, UP, DOWN
from .triangulation import Triangulation
Expand Down
25 changes: 12 additions & 13 deletions veerer/automaton.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
r"""
Train-track and triangulations automata.
"""
######################################################################
# This file is part of veering.
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2018 Mark Bell
# 2018-2023 Vincent Delecroix
# 2018 Saul Schleimer
#
# veerer is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
######################################################################
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

import os
import sys
Expand Down
19 changes: 19 additions & 0 deletions veerer/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@
sage: from veerer.constants import RED, BLUE, PURPLE, GREEN
"""
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2018 Mark Bell
# 2018-2023 Vincent Delecroix
# 2018 Saul Schleimer
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

NONE = 0

Expand Down
19 changes: 19 additions & 0 deletions veerer/cover.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
r"""
Covering of triangulations
"""
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2018 Mark Bell
# 2018-2023 Vincent Delecroix
# 2018 Saul Schleimer
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

from array import array

Expand Down
17 changes: 17 additions & 0 deletions veerer/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@
sage: from veerer.env import sage, flipper, surface_dynamics, ppl
"""
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

CHECK = False

Expand Down
17 changes: 17 additions & 0 deletions veerer/flat_structure.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
r"""
Veering triangulations endowed with a flat structure.
"""
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2018-2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

from sage.structure.sequence import Sequence
from sage.categories.fields import Fields
Expand Down
25 changes: 12 additions & 13 deletions veerer/flip_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,23 @@
sage: fp == fp2
True
"""
######################################################################
# This file is part of veering.
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2020 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
######################################################################
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

from .constants import colour_from_char, colour_to_char, RED, BLUE, PURPLE, GREEN, HORIZONTAL, VERTICAL
from .permutation import perm_init, perm_check, perm_id, perm_is_one, perm_preimage, perm_invert, perm_cycle_string, perm_compose, perm_pow, perm_conjugate
Expand Down
19 changes: 19 additions & 0 deletions veerer/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@
attributes "width" and "height". This would better be redefined
to width="100%".
"""
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2018 Mark Bell
# 2018-2023 Vincent Delecroix
# 2018 Saul Schleimer
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

import math
import itertools
Expand Down
25 changes: 12 additions & 13 deletions veerer/linear_family.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
r"""
Linear family of coordinates on a veering triangulation
"""
######################################################################
# This file is part of veering.
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
######################################################################
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

from array import array
from copy import copy
Expand Down
18 changes: 18 additions & 0 deletions veerer/measured_train_track.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2018-2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

from sage.categories.fields import Fields

from sage.structure.sequence import Sequence
Expand Down
17 changes: 17 additions & 0 deletions veerer/misc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
r"""
Utility functions.
"""
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2018-2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

from .env import ppl

Expand Down
25 changes: 12 additions & 13 deletions veerer/permutation.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,25 @@ TODO:
such array would better not be allocated each time the
function is called.
"""
######################################################################
# This file is part of veering.
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2018 Mark Bell
# 2018-2023 Vincent Delecroix
# 2018 Saul Schleimer
#
# veerer is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
######################################################################
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

from cpython cimport array
from math import log
Expand Down
25 changes: 12 additions & 13 deletions veerer/polyhedron/cone.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,24 +66,23 @@
sage: cone_nmz.add_constraint(phi * L.variable(0) - 3 * L.variable(2) <= 0) # optional - pynoramliz
Cone of dimension 2 in ambient dimension 3 made of 2 facets (backend=normaliz-NF)
"""
######################################################################
# This file is part of veering.
# ****************************************************************************
# This file is part of veerer
#
# Copyright (C) 2023 Vincent Delecroix
#
# veerer is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# veerer is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License version 3 as published by the Free
# Software Foundation.
#
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# veerer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
######################################################################
# You should have received a copy of the GNU General Public License
# along with veerer. If not, see <https://www.gnu.org/licenses/>.
# ****************************************************************************

from ..env import sage, ppl, PyNormaliz
if sage is not None:
Expand Down
Loading

0 comments on commit 3050c74

Please sign in to comment.