Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lalsuite-archive
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
Model registry
Operate
Environments
Monitor
Incidents
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
Oliver Behnke
lalsuite-archive
Commits
2ce7ed82
Commit
2ce7ed82
authored
7 years ago
by
Chris Pankow
Browse files
Options
Downloads
Patches
Plain Diff
rapidpe_cig: add param for number of points to a side
parent
bb39cfb9
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lalinference/python/rapidpe_compute_intrinsic_grid.py
+2
-1
2 additions, 1 deletion
lalinference/python/rapidpe_compute_intrinsic_grid.py
with
2 additions
and
1 deletion
lalinference/python/rapidpe_compute_intrinsic_grid.py
+
2
−
1
View file @
2ce7ed82
...
@@ -192,6 +192,7 @@ grid_section.add_argument("--setup", help="Set up the initial grid based on temp
...
@@ -192,6 +192,7 @@ grid_section.add_argument("--setup", help="Set up the initial grid based on temp
grid_section
.
add_argument
(
"
-t
"
,
"
--tmplt-bank
"
,
help
=
"
XML file with template bank.
"
)
grid_section
.
add_argument
(
"
-t
"
,
"
--tmplt-bank
"
,
help
=
"
XML file with template bank.
"
)
grid_section
.
add_argument
(
"
-O
"
,
"
--use-overlap
"
,
help
=
"
Use overlap information to define
'
closeness
'
.
"
)
grid_section
.
add_argument
(
"
-O
"
,
"
--use-overlap
"
,
help
=
"
Use overlap information to define
'
closeness
'
.
"
)
grid_section
.
add_argument
(
"
-T
"
,
"
--overlap-threshold
"
,
type
=
float
,
help
=
"
Threshold on overlap value.
"
)
grid_section
.
add_argument
(
"
-T
"
,
"
--overlap-threshold
"
,
type
=
float
,
help
=
"
Threshold on overlap value.
"
)
grid_section
.
add_argument
(
"
-s
"
,
"
--points-per-side
"
,
type
=
int
,
default
=
10
,
help
=
"
Number of points per side, default is 10.
"
)
grid_section
.
add_argument
(
"
-D
"
,
"
--deactivate
"
,
action
=
"
store_true
"
,
help
=
"
Deactivate cells initially which have no template within them.
"
)
grid_section
.
add_argument
(
"
-D
"
,
"
--deactivate
"
,
action
=
"
store_true
"
,
help
=
"
Deactivate cells initially which have no template within them.
"
)
grid_section
.
add_argument
(
"
-P
"
,
"
--prerefine
"
,
help
=
"
Refine this initial grid based on overlap values.
"
)
grid_section
.
add_argument
(
"
-P
"
,
"
--prerefine
"
,
help
=
"
Refine this initial grid based on overlap values.
"
)
...
@@ -346,7 +347,7 @@ else:
...
@@ -346,7 +347,7 @@ else:
# TODO: Alternatively, check density of points in the region to determine
# TODO: Alternatively, check density of points in the region to determine
# the points to a side
# the points to a side
grid
,
spacing
=
amrlib
.
create_regular_grid_from_cell
(
init_region
,
side_pts
=
5
,
return_cells
=
True
)
grid
,
spacing
=
amrlib
.
create_regular_grid_from_cell
(
init_region
,
side_pts
=
opts
.
points_per_side
/
2
,
return_cells
=
True
)
# "Deactivate" cells not close to template points
# "Deactivate" cells not close to template points
# FIXME: This gets more and more dangerous in higher dimensions
# FIXME: This gets more and more dangerous in higher dimensions
...
...
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