Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Ig-dolci committed Jan 23, 2024
1 parent 5e60a0c commit 3bdaa98
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 29 deletions.
4 changes: 2 additions & 2 deletions checkpoint_schedules/basic_schedules.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College London

Check failure on line 2 in checkpoint_schedules/basic_schedules.py

View workflow job for this annotation

GitHub Actions / Run linters

E501 line too long (83 > 79 characters)
# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)

Check failure on line 5 in checkpoint_schedules/basic_schedules.py

View workflow job for this annotation

GitHub Actions / Run linters

E501 line too long (80 > 79 characters)
Expand All @@ -10,6 +8,8 @@
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Check failure on line 8 in checkpoint_schedules/basic_schedules.py

View workflow job for this annotation

GitHub Actions / Run linters

E501 line too long (91 > 79 characters)
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <https://www.gnu.org/licenses/>.
# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).

Check failure on line 12 in checkpoint_schedules/basic_schedules.py

View workflow job for this annotation

GitHub Actions / Run linters

E501 line too long (103 > 79 characters)

"""This module contains basic checkpointing schedules.
"""
Expand Down
4 changes: 2 additions & 2 deletions checkpoint_schedules/hrevolve.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College London

Check failure on line 2 in checkpoint_schedules/hrevolve.py

View workflow job for this annotation

GitHub Actions / Run linters

E501 line too long (83 > 79 characters)
# Developed by James R. Maddison ([email protected]),
# Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)

Check failure on line 5 in checkpoint_schedules/hrevolve.py

View workflow job for this annotation

GitHub Actions / Run linters

E501 line too long (80 > 79 characters)
Expand All @@ -10,6 +8,8 @@
# 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
# this program. If not, see <https://www.gnu.org/licenses/>.
# Developed by James R. Maddison ([email protected]),
# Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).

"""This module contains the checkpointing schedules for the H-Revolve,
Disk Revolve, Periodic Disk Revolve and Revolve algorithms.
Expand Down
5 changes: 2 additions & 3 deletions checkpoint_schedules/hrevolve_sequences/basic_functions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)
Expand All @@ -10,7 +8,8 @@
# 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
# this program. If not, see <https://www.gnu.org/licenses/>.

# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).

"""This module contains the basic functions used in the H-ReVolve algorithm."""
import math
Expand Down
4 changes: 2 additions & 2 deletions checkpoint_schedules/hrevolve_sequences/disk_revolve.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)
Expand All @@ -10,6 +8,8 @@
# 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
# this program. If not, see <https://www.gnu.org/licenses/>.
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
"""This module contains the functions to compute the Disk-Revolve schedules.
"""
from functools import partial
Expand Down
4 changes: 2 additions & 2 deletions checkpoint_schedules/hrevolve_sequences/hrevolve.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)
Expand All @@ -10,6 +8,8 @@
# 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
# this program. If not, see <https://www.gnu.org/licenses/>.
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
"""This module contains the implementation of the H-Revolve schedule.
"""
from functools import partial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)
Expand All @@ -10,6 +8,8 @@
# 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
# this program. If not, see <https://www.gnu.org/licenses/>.
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
"""This module contains the periodic disk revolve checkpoint schedule."""
from functools import partial
from .basic_functions import (Operation as Op, Sequence, Function, beta)
Expand Down
4 changes: 2 additions & 2 deletions checkpoint_schedules/hrevolve_sequences/revolve.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)
Expand All @@ -10,6 +8,8 @@
# 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
# this program. If not, see <https://www.gnu.org/licenses/>.
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
"""This module contains the functions used to compute the revolver sequences.
"""
from functools import partial
Expand Down
4 changes: 2 additions & 2 deletions checkpoint_schedules/hrevolve_sequences/revolve_1d.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)
Expand All @@ -10,6 +8,8 @@
# 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
# this program. If not, see <https://www.gnu.org/licenses/>.
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
"""This module contains the functions used to compute the 1D revolver
sequences.
"""
Expand Down
4 changes: 2 additions & 2 deletions checkpoint_schedules/hrevolve_sequences/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)
Expand All @@ -10,6 +8,8 @@
# 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
# this program. If not, see <https://www.gnu.org/licenses/>.
# Developed originally by Guillaume Pallez ([email protected]), Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).

def revolver_parameters(wd, rd, uf, ub):
"""Parameter use to obtain the revolver sequences.
Expand Down
5 changes: 2 additions & 3 deletions checkpoint_schedules/mixed.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College London
# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)
Expand All @@ -9,7 +7,8 @@
# 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
# this program. If not, see <https://www.gnu.org/licenses/>.

# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
import warnings
import functools
import numpy as np
Expand Down
5 changes: 2 additions & 3 deletions checkpoint_schedules/multistage.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College London
# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)
Expand All @@ -10,7 +8,8 @@
# 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
# this program. If not, see <https://www.gnu.org/licenses/>.

# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
import functools
from operator import itemgetter
from .schedule import CheckpointSchedule, Forward, Reverse, Copy, Move, \
Expand Down
4 changes: 2 additions & 2 deletions checkpoint_schedules/schedule.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/python
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College London
# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)
Expand All @@ -10,6 +8,8 @@
# 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
# this program. If not, see <https://www.gnu.org/licenses/>.
# Developed by Daiane I. Dolci ([email protected]), by James R. Maddison ([email protected])
# and David A. Ham ([email protected]).

"""Classes used to define checkpointing schedules and actions in checkpointing
schedules.
Expand Down
4 changes: 2 additions & 2 deletions checkpoint_schedules/twolevel_binomial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College London
# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).
# This program 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)
Expand All @@ -9,6 +7,8 @@
# 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
# this program. If not, see <https://www.gnu.org/licenses/>.
# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected]) and David A. Ham ([email protected]).

from .schedule import CheckpointSchedule, Forward, Reverse, Copy, Move, \
EndForward, EndReverse, StorageType
Expand Down

0 comments on commit 3bdaa98

Please sign in to comment.