Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
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
ift
NIFTy
Merge requests
!320
better `get_default_codomain` for GLSpace
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
better `get_default_codomain` for GLSpace
glspace_codomain
into
NIFTy_5
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Martin Reinecke
requested to merge
glspace_codomain
into
NIFTy_5
6 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Noticed by
@mawandro
0
0
Merge request reports
Compare
NIFTy_5
NIFTy_5 (base)
and
latest version
latest version
6dd5a62f
1 commit,
6 years ago
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
nifty5/domains/gl_space.py
+
3
−
1
Options
@@ -103,7 +103,9 @@ class GLSpace(StructuredDomain):
The partner domain
"""
from
..domains.lm_space
import
LMSpace
return
LMSpace
(
lmax
=
self
.
_nlat
-
1
,
mmax
=
self
.
_nlon
//
2
)
mmax
=
self
.
_nlon
//
2
lmax
=
max
(
mmax
,
self
.
_nlat
-
1
)
return
LMSpace
(
lmax
=
lmax
,
mmax
=
mmax
)
def
check_codomain
(
self
,
codomain
):
"""
Raises `TypeError` if `codomain` is not a matching partner domain
Loading