Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
calc-stats
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
util
sequencer
calc-stats
Commits
3c0adcf2
Commit
3c0adcf2
authored
3 years ago
by
Giulio Gaio
Browse files
Options
Downloads
Patches
Plain Diff
Fixed scipy import
parent
024aefb4
No related branches found
Branches containing commit
Tags
1.0.2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CalcStats.py
+3
-3
3 additions, 3 deletions
src/CalcStats.py
with
3 additions
and
3 deletions
src/CalcStats.py
+
3
−
3
View file @
3c0adcf2
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
from
tango
import
*
from
tango
import
*
#import matplotlib.pyplot as plt
#import matplotlib.pyplot as plt
import
numpy
as
np
import
numpy
as
np
import
scipy
.stats
as
s
tats
import
scipy
as
s
p
import
time
,
datetime
import
time
,
datetime
import
sys
,
os
import
sys
,
os
import
math
import
math
...
@@ -879,8 +879,8 @@ class DeviceObj:
...
@@ -879,8 +879,8 @@ class DeviceObj:
self
.
max
=
np
.
max
(
self
.
sort_filt_data
)
self
.
max
=
np
.
max
(
self
.
sort_filt_data
)
self
.
median
=
self
.
sort_filt_data
[
int
(
self
.
valid_samples
/
2
)
-
1
];
self
.
median
=
self
.
sort_filt_data
[
int
(
self
.
valid_samples
/
2
)
-
1
];
self
.
std
=
np
.
std
(
self
.
sort_filt_data
)
self
.
std
=
np
.
std
(
self
.
sort_filt_data
)
self
.
skew
=
stats
.
skew
(
self
.
sort_filt_data
)
self
.
skew
=
sp
.
stats
.
skew
(
self
.
sort_filt_data
)
self
.
kurt
=
stats
.
kurtosis
(
self
.
sort_filt_data
)
self
.
kurt
=
sp
.
stats
.
kurtosis
(
self
.
sort_filt_data
)
if
DATA_DBG
:
if
DATA_DBG
:
print
(
self
.
device_name
,
'
/
'
,
self
.
command
,
'
valid samples
'
,
self
.
valid_samples
)
print
(
self
.
device_name
,
'
/
'
,
self
.
command
,
'
valid samples
'
,
self
.
valid_samples
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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