not1mm 24.10.26__py3-none-any.whl → 24.10.27.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
not1mm/__main__.py CHANGED
@@ -584,7 +584,7 @@ class MainWindow(QtWidgets.QMainWindow):
584
584
  self.station = self.database.fetch_station()
585
585
  if self.station is None:
586
586
  self.station = {}
587
- self.contact = self.database.empty_contact
587
+ self.contact = self.database.empty_contact.copy()
588
588
  self.current_op = self.station.get("Call", "")
589
589
  self.voice_process.current_op = self.current_op
590
590
  self.make_op_dir()
@@ -1041,7 +1041,9 @@ class MainWindow(QtWidgets.QMainWindow):
1041
1041
  if mode in ["CW", "SSB", "RTTY"]:
1042
1042
  freq = fakefreq(str(band), mode)
1043
1043
  self.change_freq(freq)
1044
- self.change_mode(mode)
1044
+ vfo = float(freq)
1045
+ vfo = int(vfo * 1000)
1046
+ self.change_mode(mode, intended_freq=vfo)
1045
1047
 
1046
1048
  def quit_app(self) -> None:
1047
1049
  """
@@ -1211,7 +1213,7 @@ class MainWindow(QtWidgets.QMainWindow):
1211
1213
  "current_database", "ham.db"
1212
1214
  )
1213
1215
  self.database = DataBase(self.dbname, fsutils.APP_DATA_PATH)
1214
- self.contact = self.database.empty_contact
1216
+ self.contact = self.database.empty_contact.copy()
1215
1217
  self.station = self.database.fetch_station()
1216
1218
  if self.station is None:
1217
1219
  self.station = {}
@@ -1246,7 +1248,7 @@ class MainWindow(QtWidgets.QMainWindow):
1246
1248
  "current_database", "ham.db"
1247
1249
  )
1248
1250
  self.database = DataBase(self.dbname, fsutils.MODULE_PATH)
1249
- self.contact = self.database.empty_contact
1251
+ self.contact = self.database.empty_contact.copy()
1250
1252
  self.station = self.database.fetch_station()
1251
1253
  if self.station is None:
1252
1254
  self.station = {}
@@ -2164,7 +2166,7 @@ class MainWindow(QtWidgets.QMainWindow):
2164
2166
  """
2165
2167
 
2166
2168
  self.dupe_indicator.hide()
2167
- self.contact = self.database.empty_contact
2169
+ self.contact = self.database.empty_contact.copy()
2168
2170
  self.heading_distance.setText("")
2169
2171
  self.dx_entity.setText("")
2170
2172
 
@@ -3125,12 +3127,12 @@ class MainWindow(QtWidgets.QMainWindow):
3125
3127
 
3126
3128
  def change_freq(self, stripped_text: str) -> None:
3127
3129
  """
3128
- Change VFO to given frequency in Khz and set the band indicator.
3129
- Send the new frequency to the rig control.
3130
+ Change Radios VFO to given frequency in Khz.
3130
3131
 
3131
3132
  Parameters
3132
3133
  ----------
3133
- stripped_text : str
3134
+ stripped_text: str
3135
+
3134
3136
  Stripped of any spaces.
3135
3137
 
3136
3138
  Returns
@@ -3160,7 +3162,7 @@ class MainWindow(QtWidgets.QMainWindow):
3160
3162
  if self.bandmap_window:
3161
3163
  self.bandmap_window.msg_from_main(cmd)
3162
3164
 
3163
- def change_mode(self, mode: str) -> None:
3165
+ def change_mode(self, mode: str, intended_freq=None) -> None:
3164
3166
  """
3165
3167
  Change mode to given mode.
3166
3168
  Send the new mode to the rig control.
@@ -3208,10 +3210,16 @@ class MainWindow(QtWidgets.QMainWindow):
3208
3210
  self.read_cw_macros()
3209
3211
  return
3210
3212
  if mode == "SSB":
3211
- if int(self.radio_state.get("vfoa", 0)) > 10000000:
3213
+ if intended_freq:
3214
+ freq = intended_freq
3215
+ else:
3216
+ freq = int(self.radio_state.get("vfoa", 0))
3217
+
3218
+ if freq > 10000000:
3212
3219
  self.radio_state["mode"] = "USB"
3213
3220
  else:
3214
3221
  self.radio_state["mode"] = "LSB"
3222
+
3215
3223
  if self.rig_control and self.rig_control.online:
3216
3224
  self.rig_control.set_mode(self.radio_state.get("mode"))
3217
3225
  else:
not1mm/lib/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """It's the version"""
2
2
 
3
- __version__ = "24.10.26"
3
+ __version__ = "24.10.27.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: not1mm
3
- Version: 24.10.26
3
+ Version: 24.10.27.1
4
4
  Summary: NOT1MM Logger
5
5
  Author-email: Michael Bridak <michael.bridak@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/mbridak/not1mm
@@ -232,6 +232,8 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
232
232
 
233
233
  ## Recent Changes (Polishing the Turd)
234
234
 
235
+ - [24-10-27-1] Fixed setting radios ssb mode when crossing 10M boundary.
236
+ - [24-10-27] Fix bug where a contacts info could be carried over to new contact if no new value was written.
235
237
  - [24-10-26] Clear inputs when seeking to a call from the bandmap via the arrow up and down. Fixed bandmap crash from bad telnet data. Drop beacons from bandmap.
236
238
  - [24-10-25] Add File Menu option to create either an ASCII or UTF8 Cabrillo.
237
239
  - [24-10-24-1] Make all Cabrillo files with UTF-8.
@@ -1,5 +1,5 @@
1
1
  not1mm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- not1mm/__main__.py,sha256=2TTyUNILQl6vIK_oVi8uzCiRv-fLC6l-S2kiU6cxTRk,135457
2
+ not1mm/__main__.py,sha256=QQQ5eU9UBMt1mCVZB_MGbGJZP_CszuMHP7YAG_1ENKo,135632
3
3
  not1mm/bandmap.py,sha256=X6mMHXS1kXBbUPZCaKgiVJ6Dz6DE6LEQqtEXfT3telg,30811
4
4
  not1mm/checkwindow.py,sha256=F6hNCbVSLG2PPY2afgmwlBWeqr1Uj4-n__AivDLVQ_0,9670
5
5
  not1mm/fsutils.py,sha256=ukHKxKTeNKxKwqRaJjtzRShL4X5Xl0jRBbADyy3Ifp8,1701
@@ -115,7 +115,7 @@ not1mm/lib/plugin_common.py,sha256=TbFUbftjELFt4QRdsjSHbqnXSngZOlSwlCTClqosDXA,9
115
115
  not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
116
116
  not1mm/lib/settings.py,sha256=7_JFDSKPOd35Gwzqhrbed4EfrlYUm7AEnz2xBRioc-g,13280
117
117
  not1mm/lib/super_check_partial.py,sha256=hwT2NRwobu0PLDyw6ltmbmcAtGBD02CKGFbgGWjXMqA,2334
118
- not1mm/lib/version.py,sha256=lhs-4aghoAhL_7sGfxxWp9xQs1uOCSFbmvOaZiGtKtk,49
118
+ not1mm/lib/version.py,sha256=xy8vIb9UKfyZu2814pEtuZUCDVSE7Oki0UJzagb1_8Q,51
119
119
  not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
120
120
  not1mm/plugins/10_10_fall_cw.py,sha256=QQjEgWQRT35qG1bi87QhoUIOzGbN8C27WIUhhoFNsAI,11866
121
121
  not1mm/plugins/10_10_spring_cw.py,sha256=nGznP9VLooaDnHi0JXttosqAtSRH32oXwWmMrXf95A0,11871
@@ -160,9 +160,9 @@ not1mm/plugins/ref_ssb.py,sha256=UC8xwl4uRihTvlYsITCvfTCPVbNXpnO91T8qMDKaW8E,209
160
160
  not1mm/plugins/stew_perry_topband.py,sha256=UOK9M23eMkcEB83kL8NPHl6QDBJFCXKZpBRlhfuEH2c,11581
161
161
  not1mm/plugins/weekly_rtty.py,sha256=WoMfQXJczvoHQB04i6TAvL6MF91uOOQ9ZmB9BpUkOfo,19098
162
162
  not1mm/plugins/winter_field_day.py,sha256=wPxHKPPeyE2XlRT6Unnz09evFwd0ghWtXU5l-nMr3aI,14492
163
- not1mm-24.10.26.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
164
- not1mm-24.10.26.dist-info/METADATA,sha256=tznhgEgHqd1EpyO3HpktRkYk3bJ1Ho-dNcrHC34GXz8,35435
165
- not1mm-24.10.26.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
166
- not1mm-24.10.26.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
167
- not1mm-24.10.26.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
168
- not1mm-24.10.26.dist-info/RECORD,,
163
+ not1mm-24.10.27.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
164
+ not1mm-24.10.27.1.dist-info/METADATA,sha256=5N1Y7hnZyFuKUFhQ8qHuKFsi_tGPIdKEzJ3WB3elEYI,35619
165
+ not1mm-24.10.27.1.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
166
+ not1mm-24.10.27.1.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
167
+ not1mm-24.10.27.1.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
168
+ not1mm-24.10.27.1.dist-info/RECORD,,