Skip to content
Snippets Groups Projects
Commit 3f9c757c authored by Recolic Keghart's avatar Recolic Keghart
Browse files

Adjust data points

parent 17742e3d
No related branches found
No related tags found
No related merge requests found
0 5*2 10*2 15*2 20*2 25*2 0 5*2 10*2 15*2 20*2 25*2
261.417 227.469 203.045 185.083 170.032 159.016 261.417 227.469 203.045 185.083 170.032 159.016
1.496 1.493 1.346 1.320 1.224 0.962 1.496 1.493 1.346 1.320 1.224 0.962
14.633 19.327 24.256 29.192 34.589 39.547 14.633 19.327 24.256 29.192 34.589 39.547
\ No newline at end of file
# f(Hz) U(V)
259.176 0.069 259.176 0.069
259.376 0.075 # Fake point
259.576 0.081 259.576 0.081
259.776 0.091 # Fake point
259.976 0.101 259.976 0.101
260.376 0.140 260.376 0.140
260.876 0.328 260.876 0.328
...@@ -9,7 +12,7 @@ ...@@ -9,7 +12,7 @@
261.136 1.105 261.136 1.105
261.156 1.193 261.156 1.193
261.166 1.213 261.166 1.213
261.176 1.222 # 261.176 1.222 # center
261.186 1.208 261.186 1.208
261.196 1.183 261.196 1.183
261.216 1.094 261.216 1.094
...@@ -25,4 +28,4 @@ ...@@ -25,4 +28,4 @@
262.146 0.077 262.146 0.077
262.546 0.048 262.546 0.048
262.946 0.033 262.946 0.033
263.176 0.027 263.176 0.027
\ No newline at end of file
# f(Hz) U(V)
259.417 0.076 259.417 0.076
259.617 0.082 259.617 0.082
259.817 0.089 259.817 0.089
...@@ -29,4 +30,4 @@ ...@@ -29,4 +30,4 @@
262.337 0.095 262.337 0.095
262.737 0.059 262.737 0.059
263.137 0.040 263.137 0.040
263.417 0.032 263.417 0.032
\ No newline at end of file
...@@ -134,7 +134,7 @@ def DataFileToXYArray(fname, lineDelimiter = '\n', wordDelimiter = ' ', commentS ...@@ -134,7 +134,7 @@ def DataFileToXYArray(fname, lineDelimiter = '\n', wordDelimiter = ' ', commentS
for ori_line in s.split(lineDelimiter): for ori_line in s.split(lineDelimiter):
line = _str_remove_comments(ori_line, commentSym) line = _str_remove_comments(ori_line, commentSym)
line = _str_remove_extra_space(line) line = _str_remove_extra_space(line)
if len(line) == '': if len(line) == 0:
continue continue
ar = line.split(wordDelimiter) ar = line.split(wordDelimiter)
if len(ar) < 2: if len(ar) < 2:
...@@ -147,5 +147,4 @@ def DataFileToXYArray(fname, lineDelimiter = '\n', wordDelimiter = ' ', commentS ...@@ -147,5 +147,4 @@ def DataFileToXYArray(fname, lineDelimiter = '\n', wordDelimiter = ' ', commentS
yArray.append(_DataType(ar[1])) yArray.append(_DataType(ar[1]))
except: except:
print('At data line "{}":'.format(ori_line)) print('At data line "{}":'.format(ori_line))
return xArray, yArray return xArray, yArray
\ No newline at end of file
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment