SpiralMap 0.20__py3-none-any.whl → 0.22__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.
SpiralMap/mytools.py CHANGED
@@ -220,7 +220,33 @@ def polar_style(ax,title='',rticks=[3., 6.,9.,12,15.,20.]):
220
220
  return
221
221
 
222
222
 
223
+ # from update_checker import update_check
224
+
225
+ # update_check('spiralmap', __version__, check_interval=20)
226
+
227
+
228
+
229
+ import os
230
+ import time
223
231
  from update_checker import update_check
224
232
  import importlib.metadata
225
233
  __version__=importlib.metadata.version('SpiralMap')
226
- update_check('spiralmap', __version__)
234
+ def check_spiralmap_updates():
235
+ cache_file = os.path.expanduser("~/.spiralmap_last_check")
236
+ # 604800 seconds = 1 week
237
+ SECONDS = 20
238
+
239
+ # Check if we should skip
240
+ if os.path.exists(cache_file):
241
+ last_check = os.path.getmtime(cache_file)
242
+ if (time.time() - last_check) < SECONDS:
243
+ return
244
+
245
+ # If we got here, perform the check
246
+ update_check('spiralmap',__version__)
247
+
248
+ # Update the timestamp of the hidden file
249
+ with open(cache_file, 'w') as f:
250
+ f.write(str(time.time()))
251
+
252
+ check_spiralmap_updates()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SpiralMap
3
- Version: 0.20
3
+ Version: 0.22
4
4
  Summary: Python Library of Milky Way's Spiral Arms
5
5
  Project-URL: Homepage, https://github.com/Abhaypru/SpiralMap
6
6
  Project-URL: Issues, https://github.com/Abhaypru/SpiralMap/issues
@@ -1,7 +1,7 @@
1
1
  SpiralMap/__init__.py,sha256=7F5e52HrtZpHq8kNmLG8e1jtNlf6jkufCDgoIKlKZGs,100
2
2
  SpiralMap/models_.py,sha256=MONpIEDJCv7cdpaGmiW0lQum8yqhweDaR9nSVGZ12oQ,45769
3
3
  SpiralMap/movie_.gif,sha256=E6-0Gzo9IgcfrsgGUTnj47a2Fw2WApD6AmjcnwzHXEQ,260591
4
- SpiralMap/mytools.py,sha256=rfdCNeTniBmY32mjWJiLNuN27NQxVg7AU994u4btisQ,7394
4
+ SpiralMap/mytools.py,sha256=HjiKJkdyDL9jCTipQpmMhmVNUwjmZn-a805XPChXEXg,8045
5
5
  SpiralMap/test.py,sha256=GgjSEStYWHEfbOodkVlq41sVZge8wSyukmtQgbCKRiI,11888
6
6
  SpiralMap/version.py,sha256=G_9nHD5j8EWxdjfiRE8uUrh0l_FRWN5WAnCM9wjLIJw,78
7
7
  SpiralMap/datafiles/flim.pkl,sha256=STMsqda-8G046xAa3t-BcA-EhS3mfKjXLSTLXkyBYdA,12210
@@ -35,7 +35,7 @@ SpiralMap/figdir_primer/map_4png.png,sha256=2cSJXNZNkwNmzCiki8NqZAwpIWn0ZDZt6aPq
35
35
  SpiralMap/figdir_primer/map_5png.png,sha256=2HTSFtUpg1SiP4tWhwqOCLma36hQKoB-khqgzsnPTVE,85117
36
36
  SpiralMap/figdir_primer/map_6png.png,sha256=_11fChqGIz8cEpLsLSMwJPeO2ivR8XYOAOHR2oeCvQk,72499
37
37
  SpiralMap/figdir_primer/map_9png.png,sha256=IQ6x6lgFZEwEcGja4Hn_XT_8t3PjY6c84-Bc6KazU9U,75444
38
- spiralmap-0.20.dist-info/METADATA,sha256=MwcrJj5D34nbL7NesZqCHqpqyYeahgq-lbr9Znm0IQ8,2515
39
- spiralmap-0.20.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
40
- spiralmap-0.20.dist-info/licenses/LICENSE.md,sha256=5w1L9A7eVMqU0wNIsBTTZA8K2JBIK0KKbqMSaQ1z9m0,1076
41
- spiralmap-0.20.dist-info/RECORD,,
38
+ spiralmap-0.22.dist-info/METADATA,sha256=E6GJGLmLj4P-TqBXJ-2DQiraBzmo_ctXza6OTgvpGH8,2515
39
+ spiralmap-0.22.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
40
+ spiralmap-0.22.dist-info/licenses/LICENSE.md,sha256=5w1L9A7eVMqU0wNIsBTTZA8K2JBIK0KKbqMSaQ1z9m0,1076
41
+ spiralmap-0.22.dist-info/RECORD,,