arcjetCV 0.0.4.dev7__py3-none-any.whl → 0.0.4.dev8__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arcjetCV
3
- Version: 0.0.4.dev7
3
+ Version: 0.0.4.dev8
4
4
  Summary: Package to process arcjet videos and segment the edge of the shock and of the sample
5
5
  Home-page: https://github.com/magnus-haw/arcjetCV
6
6
  Author: arcjetCV team
@@ -19,14 +19,14 @@ arcjetCV/utils/processor.py,sha256=Kop89fy9QGscuoMBP98TWWZL_u0B8FAoRPzfnfQf2I0,1
19
19
  arcjetCV/utils/utils.py,sha256=BXSaH2sE6Ty4LXvpVmXK6Mk-n2Uxr8QQGSeaimyk06Q,4710
20
20
  arcjetCV/utils/video.py,sha256=qPkJIJP4v5rma5aE8mvoK2bEr5Bya-Zn6lI3nsjBLPs,9266
21
21
  tests/README.md,sha256=BoRimVG5QU0b8ibVP5qguhQqrK732ZsDKwxtrBMeLK8,432
22
- tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
+ tests/__init__.py,sha256=qQR_RtZRMp6JzQp4Vu8QLu1MHKeP9SrzqrqRQrn6rAE,899
23
23
  tests/test_functions.py,sha256=x_A_TDi2lzzOKr1W2YO08NHNHhdvU8TDNb8g1Dcdol4,4931
24
24
  tests/test_gui.py,sha256=KBRZRREt5MISN2-wJDJLg2ktmOvpFAvLCzw92POWzLk,17482
25
25
  tests/test_obj_models.py,sha256=QAk8uNhRGZPTHkHVx3gswzsPA-nbpOSM2pkjLR4_gRE,4131
26
26
  tests/test_segmentation.py,sha256=X3X66Ef-3FDID-xH6r637gx4zydD4BvKM8Sk5see97o,8296
27
- arcjetCV-0.0.4.dev7.dist-info/LICENSE,sha256=WSqTxCTC97vbTvtqTCphE6o0u4jrQQg4nuWHLjk33kU,12784
28
- arcjetCV-0.0.4.dev7.dist-info/METADATA,sha256=eYL_RMjtponcid_3ZQ5uzoe3qHU5TWZA8HXEsJZkLIg,5491
29
- arcjetCV-0.0.4.dev7.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
30
- arcjetCV-0.0.4.dev7.dist-info/entry_points.txt,sha256=IWfHYYfvKgoa5zhGibTEnJUHHTKChL2z81gysRPJxrk,86
31
- arcjetCV-0.0.4.dev7.dist-info/top_level.txt,sha256=8Eo3uozrbj-4LkXnIy2dU4IrkHYWIQROWpc-WYuUxiw,15
32
- arcjetCV-0.0.4.dev7.dist-info/RECORD,,
27
+ arcjetCV-0.0.4.dev8.dist-info/LICENSE,sha256=WSqTxCTC97vbTvtqTCphE6o0u4jrQQg4nuWHLjk33kU,12784
28
+ arcjetCV-0.0.4.dev8.dist-info/METADATA,sha256=QTpx43pFI_xgOESVI-_eJVrcKB7bL-kC2LlJZmeBX4k,5491
29
+ arcjetCV-0.0.4.dev8.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
30
+ arcjetCV-0.0.4.dev8.dist-info/entry_points.txt,sha256=IWfHYYfvKgoa5zhGibTEnJUHHTKChL2z81gysRPJxrk,86
31
+ arcjetCV-0.0.4.dev8.dist-info/top_level.txt,sha256=8Eo3uozrbj-4LkXnIy2dU4IrkHYWIQROWpc-WYuUxiw,15
32
+ arcjetCV-0.0.4.dev8.dist-info/RECORD,,
tests/__init__.py CHANGED
@@ -0,0 +1,27 @@
1
+ import os
2
+ import urllib.request
3
+
4
+
5
+ def download_large_file(url, local_filename):
6
+ """Downloads the file from the specified URL if it doesn't already exist locally."""
7
+ if not os.path.exists(local_filename):
8
+ print(f"Downloading {url} to {local_filename}...")
9
+ urllib.request.urlretrieve(url, local_filename)
10
+ print(f"Downloaded {local_filename}.")
11
+ else:
12
+ print(f"{local_filename} already exists, skipping download.")
13
+
14
+
15
+ def download_test_video():
16
+ """Ensures that the test video 'arcjet_test.mp4' is downloaded."""
17
+ base_url = "https://github.com/magnus-haw/arcjetCV/raw/main/arcjetCV/tests/"
18
+ file_to_download = "arcjet_test.mp4"
19
+
20
+ download_large_file(
21
+ base_url + file_to_download,
22
+ os.path.join(os.path.dirname(__file__), file_to_download),
23
+ )
24
+
25
+
26
+ # Automatically download the video when the function is called
27
+ download_test_video()