Skip to content

Commit 7428162

Browse files
CoronelBuendiaje-cook
authored andcommitted
licence header
1 parent 56a18b5 commit 7428162

File tree

5 files changed

+22
-98
lines changed

5 files changed

+22
-98
lines changed

bluemira/magnets/__init__.py

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
1-
# bluemira is an integrated inter-disciplinary design tool for future fusion
2-
# reactors. It incorporates several modules, some of which rely on other
3-
# codes, to carry out a range of typical conceptual fusion reactor design
4-
# activities.
1+
# SPDX-FileCopyrightText: 2021-present M. Coleman, J. Cook, F. Franza
2+
# SPDX-FileCopyrightText: 2021-present I.A. Maione, S. McIntosh
3+
# SPDX-FileCopyrightText: 2021-present J. Morris, D. Short
54
#
6-
# Copyright (C) 2021-2023 M. Coleman, J. Cook, F. Franza, I.A. Maione, S. McIntosh,
7-
# J. Morris, D. Short
8-
#
9-
# bluemira is free software; you can redistribute it and/or
10-
# modify it under the terms of the GNU Lesser General Public
11-
# License as published by the Free Software Foundation; either
12-
# version 2.1 of the License, or (at your option) any later version.
13-
#
14-
# bluemira is distributed in the hope that it will be useful,
15-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17-
# Lesser General Public License for more details.
18-
#
19-
# You should have received a copy of the GNU Lesser General Public
20-
# License along with bluemira; if not, see <https://www.gnu.org/licenses/>.
5+
# SPDX-License-Identifier: LGPL-2.1-or-later
216

227
"""
238
Magnets module for the bluemira code.

bluemira/magnets/solenoid_tools.py

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
1-
# bluemira is an integrated inter-disciplinary design tool for future fusion
2-
# reactors. It incorporates several modules, some of which rely on other
3-
# codes, to carry out a range of typical conceptual fusion reactor design
4-
# activities.
1+
# SPDX-FileCopyrightText: 2021-present M. Coleman, J. Cook, F. Franza
2+
# SPDX-FileCopyrightText: 2021-present I.A. Maione, S. McIntosh
3+
# SPDX-FileCopyrightText: 2021-present J. Morris, D. Short
54
#
6-
# Copyright (C) 2021-2023 M. Coleman, J. Cook, F. Franza, I.A. Maione, S. McIntosh,
7-
# J. Morris, D. Short
8-
#
9-
# bluemira is free software; you can redistribute it and/or
10-
# modify it under the terms of the GNU Lesser General Public
11-
# License as published by the Free Software Foundation; either
12-
# version 2.1 of the License, or (at your option) any later version.
13-
#
14-
# bluemira is distributed in the hope that it will be useful,
15-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17-
# Lesser General Public License for more details.
18-
#
19-
# You should have received a copy of the GNU Lesser General Public
20-
# License along with bluemira; if not, see <https://www.gnu.org/licenses/>.
5+
# SPDX-License-Identifier: LGPL-2.1-or-later
216

227
"""
238
Tools for simple solenoid calculations.

examples/magnets/central_solenoid_example.ex.py

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,11 @@
1414
# ---
1515

1616
# %% tags=["remove-cell"]
17-
# bluemira is an integrated inter-disciplinary design tool for future fusion
18-
# reactors. It incorporates several modules, some of which rely on other
19-
# codes, to carry out a range of typical conceptual fusion reactor design
20-
# activities.
17+
# SPDX-FileCopyrightText: 2021-present M. Coleman, J. Cook, F. Franza
18+
# SPDX-FileCopyrightText: 2021-present I.A. Maione, S. McIntosh
19+
# SPDX-FileCopyrightText: 2021-present J. Morris, D. Short
2120
#
22-
# Copyright (C) 2021-2023 M. Coleman, J. Cook, F. Franza, I.A. Maione, S. McIntosh,
23-
# J. Morris, D. Short
24-
#
25-
# bluemira is free software; you can redistribute it and/or
26-
# modify it under the terms of the GNU Lesser General Public
27-
# License as published by the Free Software Foundation; either
28-
# version 2.1 of the License, or (at your option) any later version.
29-
#
30-
# bluemira is distributed in the hope that it will be useful,
31-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
32-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
33-
# Lesser General Public License for more details.
34-
#
35-
# You should have received a copy of the GNU Lesser General Public
36-
# License along with bluemira; if not, see <https://www.gnu.org/licenses/>.
21+
# SPDX-License-Identifier: LGPL-2.1-or-later
3722

3823
"""
3924
An example central solenoid winding pack design

tests/magnets/__init__.py

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
1-
# bluemira is an integrated inter-disciplinary design tool for future fusion
2-
# reactors. It incorporates several modules, some of which rely on other
3-
# codes, to carry out a range of typical conceptual fusion reactor design
4-
# activities.
1+
# SPDX-FileCopyrightText: 2021-present M. Coleman, J. Cook, F. Franza
2+
# SPDX-FileCopyrightText: 2021-present I.A. Maione, S. McIntosh
3+
# SPDX-FileCopyrightText: 2021-present J. Morris, D. Short
54
#
6-
# Copyright (C) 2021-2023 M. Coleman, J. Cook, F. Franza, I.A. Maione, S. McIntosh,
7-
# J. Morris, D. Short
8-
#
9-
# bluemira is free software; you can redistribute it and/or
10-
# modify it under the terms of the GNU Lesser General Public
11-
# License as published by the Free Software Foundation; either
12-
# version 2.1 of the License, or (at your option) any later version.
13-
#
14-
# bluemira is distributed in the hope that it will be useful,
15-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17-
# Lesser General Public License for more details.
18-
#
19-
# You should have received a copy of the GNU Lesser General Public
20-
# License along with bluemira; if not, see <https://www.gnu.org/licenses/>.
5+
# SPDX-License-Identifier: LGPL-2.1-or-later

tests/magnets/test_solenoid_tools.py

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
1-
# bluemira is an integrated inter-disciplinary design tool for future fusion
2-
# reactors. It incorporates several modules, some of which rely on other
3-
# codes, to carry out a range of typical conceptual fusion reactor design
4-
# activities.
1+
# SPDX-FileCopyrightText: 2021-present M. Coleman, J. Cook, F. Franza
2+
# SPDX-FileCopyrightText: 2021-present I.A. Maione, S. McIntosh
3+
# SPDX-FileCopyrightText: 2021-present J. Morris, D. Short
54
#
6-
# Copyright (C) 2021-2023 M. Coleman, J. Cook, F. Franza, I.A. Maione, S. McIntosh,
7-
# J. Morris, D. Short
8-
#
9-
# bluemira is free software; you can redistribute it and/or
10-
# modify it under the terms of the GNU Lesser General Public
11-
# License as published by the Free Software Foundation; either
12-
# version 2.1 of the License, or (at your option) any later version.
13-
#
14-
# bluemira is distributed in the hope that it will be useful,
15-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17-
# Lesser General Public License for more details.
18-
#
19-
# You should have received a copy of the GNU Lesser General Public
20-
# License along with bluemira; if not, see <https://www.gnu.org/licenses/>.
21-
5+
# SPDX-License-Identifier: LGPL-2.1-or-later
226

237
import numpy as np
248
import pytest
@@ -54,8 +38,8 @@ def test_radial_boundary_conditions(self):
5438

5539
class TestCalculateBmax:
5640
@pytest.mark.parametrize(
57-
"alpha,beta,k_expected",
58-
[[1.375, 1.2, 1.12], [1.322, 1.5, 1.07], [1.287, 2.0, 1.03]],
41+
("alpha", "beta", "k_expected"),
42+
[(1.375, 1.2, 1.12), (1.322, 1.5, 1.07), (1.287, 2.0, 1.03)],
5943
)
6044
def test_Bmax(self, alpha, beta, k_expected):
6145
"""

0 commit comments

Comments
 (0)