Skip to content

Commit

Permalink
Dolci/adding copyright (#58)
Browse files Browse the repository at this point in the history
Add spdx copyright headers and authorship information to source files.
  • Loading branch information
Ig-dolci authored Jan 31, 2024
1 parent 055c881 commit 245a1dc
Show file tree
Hide file tree
Showing 14 changed files with 87 additions and 8 deletions.
7 changes: 7 additions & 0 deletions checkpoint_schedules/basic_schedules.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: LGPL-3.0-only
# 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 module contains basic checkpointing schedules.
"""

Expand Down
9 changes: 7 additions & 2 deletions checkpoint_schedules/hrevolve.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College
# London
# Developed by Daiane I. Dolci ([email protected]),
# James R. Maddison ([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
8 changes: 7 additions & 1 deletion checkpoint_schedules/hrevolve_sequences/basic_functions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/python
# SPDX-License-Identifier: LGPL-3.0-only
# 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 module contains the basic functions used in the H-ReVolve algorithm."""
import math

Expand Down
8 changes: 7 additions & 1 deletion checkpoint_schedules/hrevolve_sequences/disk_revolve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/python
# SPDX-License-Identifier: LGPL-3.0-only
# 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 module contains the functions to compute the Disk-Revolve schedules.
"""
from functools import partial
Expand Down
7 changes: 7 additions & 0 deletions checkpoint_schedules/hrevolve_sequences/hrevolve.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: LGPL-3.0-only
# 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 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,3 +1,9 @@
# SPDX-License-Identifier: LGPL-3.0-only
# 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 module contains the periodic disk revolve checkpoint schedule."""
from functools import partial
Expand Down
8 changes: 7 additions & 1 deletion checkpoint_schedules/hrevolve_sequences/revolve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/python
# SPDX-License-Identifier: LGPL-3.0-only
# 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 module contains the functions used to compute the revolver sequences.
"""
from functools import partial
Expand Down
8 changes: 7 additions & 1 deletion checkpoint_schedules/hrevolve_sequences/revolve_1d.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/python
# SPDX-License-Identifier: LGPL-3.0-only
# 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 module contains the functions used to compute the 1D revolver
sequences.
"""
Expand Down
7 changes: 6 additions & 1 deletion checkpoint_schedules/hrevolve_sequences/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/python
# SPDX-License-Identifier: LGPL-3.0-only
# 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]).

def revolver_parameters(wd, rd, uf, ub):
"""Parameter use to obtain the revolver sequences.
Expand Down
6 changes: 6 additions & 0 deletions checkpoint_schedules/mixed.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# SPDX-License-Identifier: LGPL-3.0-only
# 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]).
import warnings
import functools
import numpy as np
Expand Down
6 changes: 6 additions & 0 deletions checkpoint_schedules/multistage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# SPDX-License-Identifier: LGPL-3.0-only
# 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]).import functools
import functools
from operator import itemgetter
from .schedule import CheckpointSchedule, Forward, Reverse, Copy, Move, \
Expand Down
7 changes: 7 additions & 0 deletions checkpoint_schedules/schedule.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College
# London
# Developed by Daiane I. Dolci ([email protected]),
# James R. Maddison ([email protected])
# and David A. Ham ([email protected]).

"""Classes used to define checkpointing schedules and actions in checkpointing
schedules.
"""
Expand Down
6 changes: 6 additions & 0 deletions checkpoint_schedules/twolevel_binomial.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# SPDX-License-Identifier: LGPL-3.0-only
# 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]).
from .schedule import CheckpointSchedule, Forward, Reverse, Copy, Move, \
EndForward, EndReverse, StorageType
from .multistage import n_advance
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
name = "checkpoint_schedules"
version = "1.0.0"
authors = [
{ name="Daiane I. Dolci ", email="ddolci@eimperial.ic.ac.uk" },
{ name="Daiane I. Dolci ", email="d.dolci@eimperial.ic.ac.uk" },
{ name="James R. Maddison", email="[email protected]" },
{ name="David A. Ham", email="[email protected]" },
{ name="Guillaume Pallez", email="[email protected]" },
Expand Down

0 comments on commit 245a1dc

Please sign in to comment.