Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor 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
calibration
pycalibration
Merge requests
!298
Feat/dss cimprove master rebasing
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Feat/dss cimprove master rebasing
feat/DSSCimproveMasterRebasing
into
feat/DSSCdarksImprove
Overview
0
Commits
64
Pipelines
0
Changes
4
Closed
Andrey Samartsev
requested to merge
feat/DSSCimproveMasterRebasing
into
feat/DSSCdarksImprove
4 years ago
Overview
0
Commits
64
Pipelines
0
Changes
4
Expand
0
0
Merge request reports
Viewing commit
a3280553
Prev
Next
Show latest version
4 files
+
580
−
29
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
a3280553
add summary info over module for dark report
· a3280553
Karim Ahmed
authored
5 years ago
cal_tools/cal_tools/plotting.py
+
9
−
8
Options
@@ -112,9 +112,9 @@ import tabulate
def
create_constant_overview
(
constant
,
name
,
cells
,
vmin
=
None
,
vmax
=
None
,
entries
=
3
,
out_folder
=
None
,
infix
=
None
):
gmap
=
{
0
:
'
High
'
,
1
:
'
Medium
'
,
2
:
'
Low
'
}
fig
=
plt
.
figure
(
figsize
=
(
10
,
5
))
ax
=
fig
.
add_subplot
(
111
)
for
g
in
range
(
entries
):
fig
=
plt
.
figure
(
figsize
=
(
10
,
5
))
ax
=
fig
.
add_subplot
(
111
)
table
=
[]
for
qm
in
constant
.
keys
():
@@ -130,12 +130,13 @@ def create_constant_overview(constant, name, cells, vmin=None, vmax=None, entrie
# np.nanmedian(d),
# np.nanstd(d)))
table
.
append
([
name
,
qm
,
gmap
[
g
],
np
.
nanmean
(
d
),
np
.
nanmedian
(
d
),
np
.
nanstd
(
d
)])
ax
.
step
(
np
.
arange
(
cells
),
np
.
nanmean
(
d
,
axis
=
(
0
,
1
)))
ax
.
set_xlabel
(
"
Memory cell
"
)
ax
.
set_ylabel
(
name
)
ax
.
set_title
(
"
{} Gain Median per Cell
"
.
format
(
gmap
[
g
]))
if
vmin
and
vmax
:
ax
.
set_ylim
(
vmin
,
vmax
)
ax
.
step
(
np
.
arange
(
cells
),
np
.
nanmean
(
d
,
axis
=
(
0
,
1
)),
label
=
f
'
{
gmap
[
g
]
}
-Gain
'
)
ax
.
set_xlabel
(
"
Memory cell
"
)
ax
.
set_ylabel
(
name
)
ax
.
legend
()
ax
.
set_title
(
f
"
{
name
}
Median per Cell
"
.
format
(
gmap
[
g
]))
if
vmin
and
vmax
:
ax
.
set_ylim
(
vmin
,
vmax
)
#if out_folder and infix:
# fig.savefig("{}/dark_analysis_{}_{}_per_cell_gain{}.png".format(out_folder,
# infix,
Loading