Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
4ec90e66
Commit
4ec90e66
authored
Jan 04, 2019
by
Philipp Arras
Browse files
Sort imports
parent
a9a60b44
Changes
2
Hide whitespace changes
Inline
Side-by-side
nifty5/library/dynamic_operator.py
View file @
4ec90e66
...
...
@@ -20,16 +20,17 @@ from __future__ import absolute_import, division, print_function
import
numpy
as
np
from
..operators.scaling_operator
import
ScalingOperator
from
..operators.harmonic_operators
import
FFTOperator
from
..operators.field_zero_padder
import
FieldZeroPadder
from
..operators.simple_linear_operators
import
Realizer
,
FieldAdapter
from
..compat
import
*
from
..domains.unstructured_domain
import
UnstructuredDomain
from
..field
import
Field
from
..operators.diagonal_operator
import
DiagonalOperator
from
..operators.field_zero_padder
import
FieldZeroPadder
from
..operators.harmonic_operators
import
FFTOperator
from
..operators.scaling_operator
import
ScalingOperator
from
..operators.simple_linear_operators
import
FieldAdapter
,
Realizer
from
..sugar
import
makeOp
from
..field
import
Field
from
..domains.unstructured_domain
import
UnstructuredDomain
from
.light_cone_operator
import
LightConeOperator
,
field_from_function
from
.light_cone_operator
import
LightConeOperator
,
field_from_function
def
make_dynamic_operator
(
FFT
,
harmonic_padding
,
sm_s0
,
sm_x0
,
keys
=
[
'f'
,
'c'
],
...
...
nifty5/library/light_cone_operator.py
View file @
4ec90e66
# 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) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY 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 <http://www.gnu.org/licenses/>.
#
# Copyright(C) 2013-2018 Max-Planck-Society
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik
# and financially supported by the Studienstiftung des deutschen Volkes.
from
__future__
import
absolute_import
,
division
,
print_function
from
..field
import
Field
import
numpy
as
np
from
..compat
import
*
from
..domain_tuple
import
DomainTuple
from
..field
import
Field
from
..linearization
import
Linearization
from
..operators.linear_operator
import
LinearOperator
from
..operators.operator
import
Operator
import
numpy
as
np
def
make_coords
(
domain
,
absolute
=
False
):
domain
=
DomainTuple
.
make
(
domain
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment