Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Aoflagger
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Marcel Loose
Aoflagger
Commits
74ed3375
Commit
74ed3375
authored
3 years ago
by
André Offringa
Browse files
Options
Downloads
Patches
Plain Diff
Fix all python examples
parent
96a1df94
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
data/deprecated/strategy.py
+0
-0
0 additions, 0 deletions
data/deprecated/strategy.py
data/example-plot-result.py
+3
-2
3 additions, 2 deletions
data/example-plot-result.py
with
3 additions
and
2 deletions
data/strategy.py
→
data/
deprecated/
strategy.py
+
0
−
0
View file @
74ed3375
File moved
This diff is collapsed.
Click to expand it.
data/
defaultstrategy
.py
→
data/
example-plot-result
.py
+
3
−
2
View file @
74ed3375
...
...
@@ -8,7 +8,8 @@ ntimes = 1000
npol
=
2
aoflagger
=
aof
.
AOFlagger
()
strategy
=
aoflagger
.
make_strategy
(
aof
.
TelescopeId
.
Generic
,
0
,
150e6
,
1
,
4e3
)
path
=
aoflagger
.
find_strategy_file
(
aof
.
TelescopeId
.
Generic
)
strategy
=
aoflagger
.
load_strategy_file
(
path
)
data
=
aoflagger
.
make_image_set
(
ntimes
,
nch
,
npol
*
2
)
# Several consecutive values at the same frequency are increased
...
...
@@ -27,7 +28,7 @@ for imgindex in range(npol*2):
data
.
set_image_buffer
(
imgindex
,
values
)
flags
=
aoflagger
.
run
(
strategy
,
data
)
flags
=
strategy
.
run
(
data
)
flagvalues
=
flags
.
get_buffer
()
flagvalues
=
flagvalues
*
1
...
...
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