Skip to content

Commit

Permalink
🐛 Debugging validate_channels
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldokun committed Feb 19, 2024
1 parent 92b4d56 commit 1d3605c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions extracao/datasources/smp.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,13 @@ def validate_channels(
).size()
grouped_channels.sort_values('size', ascending=False, inplace=True, ignore_index=True)
grouped_channels['Canalização'] = 'Inválida'
grouped_channels.loc[:, 'Offset'] = np.nan
grouped_channels.loc[:, ['Blocos_Downlink', 'Faixas']] = pd.NA
grouped_channels.loc[
:, ['Blocos_Downlink', 'Faixas', 'Canalização']
] = grouped_channels.loc[:, ['Blocos_Downlink', 'Faixas', 'Canalização']].astype(
'string', copy=False
)
grouped_channels.loc[:, 'Offset'] = grouped_channels.loc[:, 'Offset'].astype('float')
grouped_channels['Offset'] = np.nan
grouped_channels['Blocos_Downlink'] = pd.NA
grouped_channels['Faixas'] = pd.NA
grouped_channels.loc[['Blocos_Downlink', 'Faixas', 'Canalização']] = grouped_channels[
['Blocos_Downlink', 'Faixas', 'Canalização']
].astype('string', copy=False)
grouped_channels['Offset'] = grouped_channels['Offset'].astype('float', copy=False)

for row in grouped_channels.itertuples():
interval = channels[
Expand Down

0 comments on commit 1d3605c

Please sign in to comment.