Commit 7a0df538 authored by Thibaud Marie Eric Buffet's avatar Thibaud Marie Eric Buffet
Browse files

remove useless nAPS in rb

parent bf9e787c
Pipeline #2483518 passed with stage
in 36 seconds
**/.sys.v#.*.ipynb/ **/.sys.v#.*.ipynb/
**.sys.v#.* **.sys.v#.*
.idea/
%% Cell type:code id:driven-console tags:
``` python
from lhcsmapi.Time import Time
from lhcsmapi.pyedsl.QueryBuilder import QueryBuilder
circuit_type = 'RB'
circuit_name = 'RB.A78'
t_start = '2021-03-15 06:46:32.124000000'
t_end = '2021-03-15 07:16:05.697000000'
u_res_dfs = QueryBuilder().with_nxcals(spark) \
.with_duration(t_start=t_start, t_end=t_end) \
.with_circuit_type(circuit_type) \
.with_metadata(circuit_name=circuit_name, system='BUSBAR', signal='U_RES', wildcard={'BUSBAR': '*'}) \
.multi_signal_query() \
.synchronize_time(Time.to_unix_timestamp(t_start)) \
.convert_index_to_sec().dfs
```
%% Cell type:code id:fifty-direction tags:
``` python
i_meas_df = QueryBuilder().with_nxcals(spark) \
.with_duration(t_start=t_start, t_end=t_end) \
.with_circuit_type(circuit_type) \
.with_metadata(circuit_name=circuit_name, system='PC', signal='I_MEAS') \
.signal_query() \
.synchronize_time(Time.to_unix_timestamp(t_start)) \
.convert_index_to_sec().dfs[0]
```
%% Cell type:code id:authentic-advertising tags:
``` python
% matplotlib notebook
ax = i_meas_df.plot(figsize=(13, 6.5), grid=True)
ax2 = ax.twinx()
for u_res_df in u_res_dfs:
u_res_df.plot(ax=ax2)
ax.set_xlabel('t, [s]')
ax.set_ylabel('I, [A]')
ax2.set_ylabel('U_RES, [V]')
```
%% Cell type:code id:continued-problem tags:
``` python
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment