Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TurTLE
TurTLE
Commits
18d1aff3
Commit
18d1aff3
authored
8 years ago
by
Chichi Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
update prefactors
parent
f0e28fa3
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_filters.py
+2
-2
2 additions, 2 deletions
tests/test_filters.py
with
2 additions
and
2 deletions
tests/test_filters.py
+
2
−
2
View file @
18d1aff3
...
@@ -53,7 +53,7 @@ def phi_s(
...
@@ -53,7 +53,7 @@ def phi_s(
return
phi
return
phi
def
hat_phi_s
(
def
hat_phi_s
(
k
,
ell
,
prefactor
=
2
*
np
.
pi
):
k
,
ell
,
prefactor
=
5.5
):
kc
=
prefactor
/
ell
kc
=
prefactor
/
ell
bindices
=
np
.
where
(
np
.
abs
(
k
)
>
kc
)
bindices
=
np
.
where
(
np
.
abs
(
k
)
>
kc
)
phi
=
np
.
ones
(
k
.
shape
,
k
.
dtype
)
phi
=
np
.
ones
(
k
.
shape
,
k
.
dtype
)
...
@@ -70,7 +70,7 @@ def phi_g(
...
@@ -70,7 +70,7 @@ def phi_g(
def
hat_phi_g
(
def
hat_phi_g
(
k
,
ell
,
k
,
ell
,
prefactor
=
1
):
prefactor
=
0.257
):
sigma
=
prefactor
*
ell
sigma
=
prefactor
*
ell
return
np
.
exp
(
-
0.5
*
(
k
*
sigma
)
**
2
)
return
np
.
exp
(
-
0.5
*
(
k
*
sigma
)
**
2
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment