Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
watpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
CoRe
watpy
Commits
92f1b03a
Commit
92f1b03a
authored
3 years ago
by
Alejandra Gonzalez
Browse files
Options
Downloads
Patches
Plain Diff
Fixed radius reading from file
parent
8127c47f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
watpy/wave/wave.py
+1
-7
1 addition, 7 deletions
watpy/wave/wave.py
with
1 addition
and
7 deletions
watpy/wave/wave.py
+
1
−
7
View file @
92f1b03a
...
...
@@ -115,13 +115,7 @@ def wfile_get_detrad(fname):
fname : Name of the file to parse for information
"""
s
=
extract_comments
(
fname
,
'
#
'
)
#return float(re.findall("\d+\.\d+",s[0])[0])
try
:
#FIXME: Doesn't identify the exponential, returns only the 1st digit
rad_str
=
re
.
findall
(
"
\d+\.\d+
"
,
s
[
0
])[
1
]
except
:
rad_str
=
re
.
findall
(
"
\w+
"
,
s
[
0
])[
1
]
return
rinf_str_to_float
(
rad_str
)
return
rinf_str_to_float
(
s
[
0
].
split
(
"
=
"
)[
1
])
def
wfile_get_mass
(
fname
):
...
...
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