Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add copyright header #27

Merged
merged 2 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/000a_sps_tune_shift.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

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

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

# mpirun -n 2 python 000c_sps_tune_shift_multibunch_mpi.py
import numpy as np
import pathlib
Expand Down
5 changes: 5 additions & 0 deletions examples/001_many_resonators.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import xwakes as xw


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

import numpy as np
import matplotlib.pyplot as plt
from scipy.signal import hilbert
Expand Down
5 changes: 5 additions & 0 deletions examples/001b_hllhc_instability_wake_table_multibunch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import xtrack as xt
import xpart as xp
import xfields as xf
Expand Down
5 changes: 5 additions & 0 deletions examples/001c_hllhc_instability_wake_table_multibunch_mpi.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #


# Run with: mpiexec -n 2 python 001c_hllhc_instability_wake_table_multibunch_mpi.py

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

import numpy as np

import xwakes as xw
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import xtrack as xt
import xpart as xp
import xwakes as xw
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import xfields as xf
import xtrack as xt
import numpy as np
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

# mpiexec -n 3 xterm -e ipython
# mpiexec -n 3 /Applications/iTerm.app/Contents/MacOS/iTerm2

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

import numpy as np
import xwakes as xw
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 Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import numpy as np
import xwakes as xw
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 Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import numpy as np
import xwakes as xw
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 Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import numpy as np
import xwakes as xw
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 Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import numpy as np
import pandas as pd
import xwakes as xw
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import numpy as np
import pandas as pd
import xwakes as xw
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import pathlib

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 Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import pathlib

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 Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import numpy as np
import pandas as pd

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

import numpy as np

import xwakes as xw
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import numpy as np

import xwakes as xw
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import numpy as np
import pandas as pd

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

import numpy as np
import pandas as pd

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

import numpy as np
import pandas as pd

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

import pandas as pd
from scipy.constants import c as clight

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

import pandas as pd
import numpy as np
from scipy.constants import c as clight
Expand Down
5 changes: 5 additions & 0 deletions pywit/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit import *
5 changes: 5 additions & 0 deletions pywit/_generate_modules.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

'''
generate files to mirror in pywit the modules from xwakes.wit
'''
Expand Down
5 changes: 5 additions & 0 deletions pywit/component.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.component import *
5 changes: 5 additions & 0 deletions pywit/devices.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.devices import *
5 changes: 5 additions & 0 deletions pywit/element.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.element import *
5 changes: 5 additions & 0 deletions pywit/elements_group.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.elements_group import *
5 changes: 5 additions & 0 deletions pywit/interface.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.interface import *
5 changes: 5 additions & 0 deletions pywit/landau_damping.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.landau_damping import *
5 changes: 5 additions & 0 deletions pywit/materials.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.materials import *
5 changes: 5 additions & 0 deletions pywit/model.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.model import *
5 changes: 5 additions & 0 deletions pywit/parameters.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.parameters import *
5 changes: 5 additions & 0 deletions pywit/plot.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.plot import *
5 changes: 5 additions & 0 deletions pywit/sacherer_formula.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.sacherer_formula import *
5 changes: 5 additions & 0 deletions pywit/utilities.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.utilities import *
5 changes: 5 additions & 0 deletions pywit/utils.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from xwakes.wit.utils import *
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 Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from setuptools import setup, find_packages, Extension
from pathlib import Path

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

"""
This file generates a headtail formatted table with dipolar and quadrupolar
wakefields only
Expand Down
5 changes: 5 additions & 0 deletions tests/test_collective_monitor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

import xwakes as xw
import xtrack as xt
from xobjects.test_helpers import for_all_test_contexts
Expand Down
5 changes: 5 additions & 0 deletions tests/test_common.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from math import sqrt, log

from numpy import vectorize, sin, cos
Expand Down
5 changes: 5 additions & 0 deletions tests/test_component.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# copyright ############################### #
# This file is part of the Xwakes Package. #
# Copyright (c) CERN, 2024. #
# ######################################### #

from pywit.component import (Component,
mix_fine_and_rough_sampling)
from test_common import functions
Expand Down
Loading
Loading