Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WindEnergyToolbox
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
toolbox
WindEnergyToolbox
Merge requests
!42
Mmpe
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Mmpe
mmpe
into
master
Overview
0
Commits
3
Pipelines
1
Changes
1
Merged
Mads M. Pedersen
requested to merge
mmpe
into
master
7 years ago
Overview
0
Commits
3
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
07d0c264
Prev
Next
Show latest version
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
07d0c264
fix tests
· 07d0c264
Mads M. Pedersen
authored
7 years ago
wetb/hawc2/pc_file.py
+
4
−
3
Options
@@ -16,8 +16,7 @@ standard_library.install_aliases()
from
wetb.hawc2.ae_file
import
AEFile
import
numpy
as
np
class
PCFile
(
object
):
class
PCFile
(
AEFile
):
"""
Read HAWC2 PC (profile coefficients) file
examples
@@ -38,7 +37,9 @@ class PCFile(object):
>>>
pcfile
.
CM
(
36
,
10
)
# CM at radius=36m and AOA=10deg
-
0.1103
"""
def
__init__
(
self
,
filename
):
def
__init__
(
self
,
filename
,
ae_filename
):
AEFile
.
__init__
(
self
,
ae_filename
)
with
open
(
filename
)
as
fid
:
lines
=
fid
.
readlines
()
nsets
=
int
(
lines
[
0
].
split
()[
0
])
Loading