Skip to content

Commit

Permalink
Add copyright statement to all files
Browse files Browse the repository at this point in the history
  • Loading branch information
giadarol committed Jun 9, 2022
1 parent ec2e3de commit ba43d89
Show file tree
Hide file tree
Showing 59 changed files with 292 additions and 2 deletions.
5 changes: 5 additions & 0 deletions examples/000_sphere/000_sphere_xfields3D.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import time

import numpy as np
Expand Down
5 changes: 5 additions & 0 deletions examples/000_sphere/001_sphere_xfields2p5D.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import time

import numpy as np
Expand Down
5 changes: 5 additions & 0 deletions examples/001_spacecharge/000_spacecharge_example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import time

import numpy as np
Expand Down
5 changes: 5 additions & 0 deletions examples/001_spacecharge/001_shared_fieldmap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import time

import numpy as np
Expand Down
5 changes: 5 additions & 0 deletions examples/002_beambeam/000_beambeam.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import time

import numpy as np
Expand Down
5 changes: 5 additions & 0 deletions examples/002_beambeam/001_beambeam3d.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np
from scipy.constants import e as qe

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import time

import numpy as np
Expand Down
5 changes: 5 additions & 0 deletions examples/003_electronlens/electronlens_interpolated_ideal.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import xobjects as xo
import xtrack as xt
import xfields as xf
Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

from setuptools import setup, find_packages, Extension

#######################################
Expand Down
5 changes: 5 additions & 0 deletions tests/test_beambeam.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np

import xobjects as xo
Expand Down
5 changes: 5 additions & 0 deletions tests/test_cerrf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np
from scipy.special import wofz as wofz_scipy
import xobjects as xo
Expand Down
5 changes: 5 additions & 0 deletions tests/test_electroncloud.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np
from numpy.random import default_rng
import xobjects as xo
Expand Down
5 changes: 5 additions & 0 deletions tests/test_electronlens_interpolated.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #


import numpy as np
import xobjects as xo
Expand Down
5 changes: 5 additions & 0 deletions tests/test_mean_std.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np

import xobjects as xo
Expand Down
5 changes: 5 additions & 0 deletions tests/test_profiles.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np

import xobjects as xo
Expand Down
5 changes: 5 additions & 0 deletions tests/test_spacecharge.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np
from scipy.constants import m_p as pmass_kg
from scipy.constants import e as qe
Expand Down
4 changes: 2 additions & 2 deletions update_copyright_statement.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# copyright ################################# #
# This file is part of the Xobjects Package. #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import os

copyright_statement = (
"""copyright #################################
This file is part of the Xobjects Package.
This file is part of the Xfields Package.
Copyright (c) CERN, 2021.
###########################################""")

Expand Down
5 changes: 5 additions & 0 deletions xfields/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

from .longitudinal_profiles import LongitudinalProfileCoasting
from .longitudinal_profiles import LongitudinalProfileQGaussian

Expand Down
5 changes: 5 additions & 0 deletions xfields/beam_elements/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

from .spacecharge import SpaceCharge3D
5 changes: 5 additions & 0 deletions xfields/beam_elements/beambeam.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np
from scipy.constants import e as qe

Expand Down
5 changes: 5 additions & 0 deletions xfields/beam_elements/beambeam3d.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

from scipy.constants import e as qe
import xobjects as xo
import xtrack as xt
Expand Down
5 changes: 5 additions & 0 deletions xfields/beam_elements/beambeam_src/beambeam.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// copyright ################################# //
// This file is part of the Xfields Package. //
// Copyright (c) CERN, 2021. //
// ########################################### //

#ifndef XFIELDS_BEAMBEAM_H
#define XFIELDS_BEAMBEAM_H

Expand Down
5 changes: 5 additions & 0 deletions xfields/beam_elements/beambeam_src/beambeam3d.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// copyright ################################# //
// This file is part of the Xfields Package. //
// Copyright (c) CERN, 2021. //
// ########################################### //

#ifndef XFIELDS_BEAMBEAM3D_H
#define XFIELDS_BEAMBEAM3D_H

Expand Down
5 changes: 5 additions & 0 deletions xfields/beam_elements/electroncloud.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

from ..fieldmaps import TriCubicInterpolatedFieldMapData
from ..general import _pkg_root

Expand Down
5 changes: 5 additions & 0 deletions xfields/beam_elements/electroncloud_src/electroncloud.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// copyright ################################# //
// This file is part of the Xfields Package. //
// Copyright (c) CERN, 2021. //
// ########################################### //

#ifndef XFIELDS_ELECTRONCLOUD_H
#define XFIELDS_ELECTRONCLOUD_H

Expand Down
5 changes: 5 additions & 0 deletions xfields/beam_elements/electronlens_interpolated.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np

import xobjects as xo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// copyright ################################# //
// This file is part of the Xfields Package. //
// Copyright (c) CERN, 2021. //
// ########################################### //

#ifndef XFIELDS_ELECTRONLENSINTERPOLATED_H
#define XFIELDS_ELECTRONLENSINTERPOLATED_H

Expand Down
5 changes: 5 additions & 0 deletions xfields/beam_elements/spacecharge.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np
from scipy.constants import e as qe
from scipy.constants import c as clight
Expand Down
5 changes: 5 additions & 0 deletions xfields/beam_elements/spacecharge_src/spacecharge3d.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// copyright ################################# //
// This file is part of the Xfields Package. //
// Copyright (c) CERN, 2021. //
// ########################################### //

#ifndef XFIELDS_SPACECHARGE3D_H
#define XFIELDS_SPACECHARGE3D_H

Expand Down
5 changes: 5 additions & 0 deletions xfields/beam_elements/spacecharge_src/spacechargebigaussian.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// copyright ################################# //
// This file is part of the Xfields Package. //
// Copyright (c) CERN, 2021. //
// ########################################### //

#ifndef XFIELDS_SPACECHARGEBIGAUSSIAN_H
#define XFIELDS_SPACECHARGEBIGAUSSIAN_H

Expand Down
5 changes: 5 additions & 0 deletions xfields/config_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

from .spacecharge_config_tools import *
from .beambeam_config_tools import configure_orbit_dependent_parameters_for_bb
from .electroncloud_config_tools import *
5 changes: 5 additions & 0 deletions xfields/config_tools/beambeam_config_tools.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import xtrack as xt


Expand Down
5 changes: 5 additions & 0 deletions xfields/config_tools/electroncloud_config_tools.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np

import xfields as xf
Expand Down
5 changes: 5 additions & 0 deletions xfields/config_tools/spacecharge_config_tools.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np
import pandas as pd

Expand Down
5 changes: 5 additions & 0 deletions xfields/fieldmaps/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

from .interpolated import TriLinearInterpolatedFieldMap
from .interpolated import TriLinearInterpolatedFieldMapData
from .tricubicinterpolated import TriCubicInterpolatedFieldMap
Expand Down
5 changes: 5 additions & 0 deletions xfields/fieldmaps/bigaussian.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np

import xobjects as xo
Expand Down
5 changes: 5 additions & 0 deletions xfields/fieldmaps/bigaussian_src/bigaussian.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// copyright ################################# //
// This file is part of the Xfields Package. //
// Copyright (c) CERN, 2021. //
// ########################################### //

#ifndef XFIEDLS_BIGUASSIIAN_H
#define XFIEDLS_BIGUASSIIAN_H

Expand Down
5 changes: 5 additions & 0 deletions xfields/fieldmaps/bigaussian_src/complex_error_function.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// copyright ################################# //
// This file is part of the Xfields Package. //
// Copyright (c) CERN, 2021. //
// ########################################### //

#ifndef XFIELDS_COMPLEX_ERROR_FUNCTION_H
#define XFIELDS_COMPLEX_ERROR_FUNCTION_H

Expand Down
5 changes: 5 additions & 0 deletions xfields/fieldmaps/interpolated.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ################################# #
# This file is part of the Xfields Package. #
# Copyright (c) CERN, 2021. #
# ########################################### #

import numpy as np

import xobjects as xo
Expand Down
5 changes: 5 additions & 0 deletions xfields/fieldmaps/interpolated_src/atomicadd.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// copyright ################################# //
// This file is part of the Xfields Package. //
// Copyright (c) CERN, 2021. //
// ########################################### //

#ifndef _ATOMICADD_H_
#define _ATOMICADD_H_

Expand Down
5 changes: 5 additions & 0 deletions xfields/fieldmaps/interpolated_src/central_diff.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// copyright ################################# //
// This file is part of the Xfields Package. //
// Copyright (c) CERN, 2021. //
// ########################################### //

#ifndef CENTRAL_DIFF_H
#define CENTRAL_DIFF_H

Expand Down
5 changes: 5 additions & 0 deletions xfields/fieldmaps/interpolated_src/charge_deposition.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// copyright ################################# //
// This file is part of the Xfields Package. //
// Copyright (c) CERN, 2021. //
// ########################################### //

#ifndef XFIELDS_CHARGE_DEPOSITION_H
#define XFIELDS_CHARGE_DEPOSITION_H

Expand Down
5 changes: 5 additions & 0 deletions xfields/fieldmaps/interpolated_src/cubic_interpolators.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// copyright ################################# //
// This file is part of the Xfields Package. //
// Copyright (c) CERN, 2021. //
// ########################################### //

#ifndef XFIELDS_CUBIC_INTERPOLATORS_H
#define XFIELDS_CUBIC_INTERPOLATORS_H

Expand Down
Loading

0 comments on commit ba43d89

Please sign in to comment.