Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Climate Lab Test Stand
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
MSK-SW
Low-Level Radio Frequency
Climate Lab
Climate Lab Test Stand
Commits
d10c84e7
Commit
d10c84e7
authored
1 year ago
by
Martin Killenberg
Browse files
Options
Downloads
Patches
Plain Diff
fix: __main__ section of prototype script
parent
7cb88688
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!5
feat: separate VNA into generic DUT class
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Python_script/prototype.py
+9
-3
9 additions, 3 deletions
Python_script/prototype.py
with
9 additions
and
3 deletions
Python_script/prototype.py
+
9
−
3
View file @
d10c84e7
...
...
@@ -512,11 +512,16 @@ if __name__ == '__main__':
with
open
(
'
test_stand_parameter.json
'
,
'
r
'
)
as
f
:
config_data
=
json
.
load
(
f
)
mes
=
Measurements
(
args
.
chamber
,
args
.
vna
,
output_basename
,
args
.
standby
,
config_data
)
with
open
(
'
ext_sensor_channels.json
'
,
'
r
'
)
as
f2
:
ext_sensor_channels
=
json
.
load
(
f2
)
mes
=
Measurements
(
args
.
chamber
,
args
.
vna
,
output_basename
,
args
.
standby
,
config_data
,
ext_sensor_channels
,
config_data
[
'
logger_ip
'
])
try
:
if
args
.
file
:
n_measurements
=
mes
.
perform_measurements
(
args
.
file
)
plot_output
(
output_basename
,
range
(
n_measurements
),
args
.
plot
,
output_basename
)
plot_output
(
output_basename
,
range
(
n_measurements
),
args
.
plot
,
config_data
,
ext_sensor_channels
,
output_basename
)
if
args
.
temperaturesweepfile
:
temperatures
,
humidity
=
run_temperature_sweep_from_file
(
args
.
temperaturesweepfile
,
mes
)
# run analysis here
...
...
@@ -524,7 +529,8 @@ if __name__ == '__main__':
for
t
in
temperatures
:
temp_extensions
.
append
(
str
(
t
)
+
'
deg_
'
+
str
(
humidity
)
+
'
rh
'
)
analysis
.
plot_sweep
(
temperatures
,
[
humidity
]
*
len
(
temperatures
),
output_basename
,
'
temperature
'
)
plot_output
(
output_basename
,
temp_extensions
,
args
.
plot
,
output_basename
+
'
: Temperature sweep
'
+
plot_output
(
output_basename
,
temp_extensions
,
args
.
plot
,
config_data
,
ext_sensor_channels
,
output_basename
+
'
: Temperature sweep
'
+
str
(
temperatures
[
0
])
+
'
degC to
'
+
str
(
temperatures
[
-
1
])
+
'
degC
'
)
print
(
str
(
temp_extensions
))
finally
:
...
...
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