[chirp_users] [CHIRP] #103: paste error, wouxun kg-uv2d power levels.
#103: paste error, wouxun kg-uv2d power levels. ----------------------------------------------+----------------------------- Reporter: Robert Terzi <rct+chirp@…> | Type: Bug Status: new | Priority: Stability Milestone: | Component: Memory Editor Version: 0.1.11 | Keywords: Platform: Linux | ----------------------------------------------+----------------------------- I think there is a problem with the wouxun power level enumeration: While cutting and pasting a frequency to move it from one location to another, upon pasting I got the pop-up: Invalid value for this field, list.index(x): x not in list
The pasted row, looses the Name field and power level is set to low. The original copied field was high.
Exception running RadioJob: list.index(x): x not in list -- Exception: -- Traceback (most recent call last): File "/mnt/s2/home/rct/proj/wouxun/chirp.hg/chirpui/common.py", line 71, in execute result = func(*self.args, **self.kwargs) File "/mnt/s2/home/rct/proj/wouxun/chirp.hg/chirp/wouxun.py", line 236, in set_memory _mem.power_high = not POWER_LEVELS.index(mem.power) ValueError: list.index(x): x not in list ------ Job Args: (Memory[45],) Job KWArgs: {}
$ hg summary parent: 923:58c5df1d9bf2 tip Wouxun does not support banks branch: default commit: (clean) update: (current)
#103: paste error, wouxun kg-uv2d power levels. -----------------------------------------------+---------------------------- Reporter: Robert Terzi <rct+chirp@…> | Owner: kk7ds Type: Bug | Status: accepted Priority: Stability | Milestone: Component: Memory Editor | Version: 0.1.11 Resolution: | Keywords: Platform: Linux | -----------------------------------------------+---------------------------- Changes (by kk7ds):
* owner: => kk7ds * status: new => accepted
Comment:
Fixed the power level crash in changeset:925.
The copy/paste thing is a little different because it uses the CSV format internally to store the memory on the clipboard. Since I don't export the power level to CSV right now (since they're different for every radio) the level doesn't survive the copy/paste. I need to do more thinking on how I want to handle that in CSV before I implement it.
I don't see the name field getting lost, which was probably a result of the power level killing the rest of the "set" operation.
#103: paste error, wouxun kg-uv2d power levels. -----------------------------------------------+---------------------------- Reporter: Robert Terzi <rct+chirp@…> | Owner: kk7ds Type: Bug | Status: accepted Priority: Stability | Milestone: Component: Memory Editor | Version: 0.1.11 Resolution: | Keywords: Platform: Linux | -----------------------------------------------+----------------------------
Comment (by Robert Terzi <rct+chirp@…>):
Copying and Pasting does seem to work now with the exception that there is no power level setting in that column after applying. I didn't try to program the radio to see what happens. I did note that doing an export to csv, causes the blank power level column to change to "High".
Since High is the default and gets auto applied when adding new frequencies, I think a paste should probably do that too until the various power level issues are worked out.
(Also, yes I believe the name field getting lost during paste was from the power level issue. The observed behavior was that the pasted name did show up during the paste but then was cleared when clearing the error pop- up.)
#103: paste error, wouxun kg-uv2d power levels. -----------------------------------------------+---------------------------- Reporter: Robert Terzi <rct+chirp@…> | Owner: kk7ds Type: Bug | Status: closed Priority: Stability | Milestone: Component: Memory Editor | Version: 0.1.11 Resolution: Fixed | Keywords: Platform: Linux | -----------------------------------------------+---------------------------- Changes (by kk7ds):
* status: accepted => closed * resolution: => Fixed
Comment:
Fixed in changeset:965
participants (1)
-
CHIRP Tracker