Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix channel CSV parsing, allow for freqs in MHz, other config parsing fixes #857

Closed
wants to merge 3 commits into from

Conversation

EricTendian
Copy link
Contributor

@EricTendian EricTendian commented Nov 12, 2023

It seems like there was a copy-paste error in the new talkgroup/channel CSV parsing, so the channel CSV was incorrectly expecting a Decimal column header. This fixes it to the right column header.

Additionally, the new logic expects a float for frequency, which is backwards-incompatible with the frequencies in existing CSVs. To work around this, while also supporting the RadioReference format of MHz freqs, it will instead check if it's either an int or a float, and if it's a float (and under 1000), will convert the MHz frequency to Hz.

Third, the config parser expected the system IDs for Boadcastify and Rdio Uploader to be strings when they really should be ints (and were previously). This updates the actual data types to be int, so there are no type issues.

@EricTendian EricTendian changed the title Fix channel CSV parsing, allow for freqs in MHz Fix channel CSV parsing, allow for freqs in MHz, other config parsing fixes Nov 12, 2023
@robotastic robotastic mentioned this pull request Nov 12, 2023
@robotastic
Copy link
Owner

Rolled into #862

@robotastic robotastic closed this Nov 12, 2023
@EricTendian EricTendian deleted the channel-csv-fix branch November 13, 2023 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants