ngaggion commited on
Commit
b3ee4a2
·
verified ·
1 Parent(s): 41b10b8

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_05-01-12_4.png +3 -0
  2. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_10-01-12_4.png +3 -0
  3. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_20-01-12_4.png +3 -0
  4. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_21-01-12_4.png +3 -0
  5. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-17_16-01-12_4.png +3 -0
  6. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-17_21-01-12_4.png +3 -0
  7. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-18_12-01-12_4.png +3 -0
  8. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-18_16-01-12_4.png +3 -0
  9. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-19_11-01-12_4.png +3 -0
  10. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-20_02-01-12_4.png +3 -0
  11. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-20_19-01-12_4.png +3 -0
  12. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-20_23-01-12_4.png +3 -0
  13. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-21_05-01-12_4.png +3 -0
  14. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-21_16-01-12_4.png +3 -0
  15. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-21_23-01-12_4.png +3 -0
  16. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_03-01-12_4.png +3 -0
  17. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_04-01-12_4.png +3 -0
  18. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_05-01-12_4.png +3 -0
  19. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_11-01-11_4.png +3 -0
  20. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_23-01-12_4.png +3 -0
  21. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_07-01-12_4.png +3 -0
  22. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_16-01-12_4.png +3 -0
  23. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_17-01-12_4.png +3 -0
  24. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_21-01-12_4.png +3 -0
  25. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_22-01-12_4.png +3 -0
  26. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-24_11-01-12_4.png +3 -0
  27. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-24_19-01-12_4.png +3 -0
  28. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-24_23-01-12_4.png +3 -0
  29. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_00-01-12_4.png +3 -0
  30. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_04-01-12_4.png +3 -0
  31. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_09-01-12_4.png +3 -0
  32. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_18-01-12_4.png +3 -0
  33. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_21-01-12_4.png +3 -0
  34. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-26_12-01-12_4.png +3 -0
  35. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-26_21-01-12_4.png +3 -0
  36. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-27_08-01-12_4.png +3 -0
  37. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-27_18-01-12_4.png +3 -0
  38. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-28_02-01-12_4.png +3 -0
  39. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-28_21-01-12_4.png +3 -0
  40. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-29_13-01-12_4.png +3 -0
  41. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_06-01-12_4.png +3 -0
  42. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_12-01-12_4.png +3 -0
  43. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_13-01-12_4.png +3 -0
  44. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_17-01-12_4.png +3 -0
  45. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_23-01-12_4.png +3 -0
  46. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_05-01-12_4.png +3 -0
  47. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_10-01-12_4.png +3 -0
  48. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_12-01-12_4.png +3 -0
  49. ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_21-01-11_4.png +3 -0
  50. script.py +84 -59
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_05-01-12_4.png ADDED

Git LFS Details

  • SHA256: 254cf41b249acab2914ba31b3ecee2f58134570f55c0a4de365ab3234b29b1b7
  • Pointer size: 132 Bytes
  • Size of remote file: 3.4 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_10-01-12_4.png ADDED

Git LFS Details

  • SHA256: 8df1f818af8ded999ba3cb6037f545af78ac835d580f8c5c359350d4c04b56a9
  • Pointer size: 132 Bytes
  • Size of remote file: 3.35 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_20-01-12_4.png ADDED

Git LFS Details

  • SHA256: 4a47065c778715105033142b584a1a30155e08cc941e2e9e1090199cd70fac42
  • Pointer size: 132 Bytes
  • Size of remote file: 3.3 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_21-01-12_4.png ADDED

Git LFS Details

  • SHA256: 912606fb356289c7acfc04b46787550b133e00bc8b7a0391f37d17505149db55
  • Pointer size: 132 Bytes
  • Size of remote file: 3.31 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-17_16-01-12_4.png ADDED

Git LFS Details

  • SHA256: 16088b3b7abc8a6789f7705d187b32bd6ec1b8b751ee0d6247e24dc5dbc22a8f
  • Pointer size: 132 Bytes
  • Size of remote file: 3.29 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-17_21-01-12_4.png ADDED

Git LFS Details

  • SHA256: 89e50c9c7f7c598255897f7181f257085c73d56f88f8e193f67f850a6a777a9a
  • Pointer size: 132 Bytes
  • Size of remote file: 3.3 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-18_12-01-12_4.png ADDED

Git LFS Details

  • SHA256: ff3b1f78896b61b1a2cd362b3bd4e449e118a1ba177ffb1057251c9211e6cc04
  • Pointer size: 132 Bytes
  • Size of remote file: 3.31 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-18_16-01-12_4.png ADDED

Git LFS Details

  • SHA256: 497c15faedd0b81e939e16ed8890f6e8bb4d24a4741c1156bcb3316d80b8f2a4
  • Pointer size: 132 Bytes
  • Size of remote file: 3.3 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-19_11-01-12_4.png ADDED

Git LFS Details

  • SHA256: d4a58fdb507471983cac2bb13c7d9dd50802a1f5029d218106617b94de9b7e74
  • Pointer size: 132 Bytes
  • Size of remote file: 3.3 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-20_02-01-12_4.png ADDED

Git LFS Details

  • SHA256: 27e33b6231f12a42c128ec40b1eeeef7ac55a15686be7338c6b58639717a041e
  • Pointer size: 132 Bytes
  • Size of remote file: 3.29 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-20_19-01-12_4.png ADDED

Git LFS Details

  • SHA256: bf6bda7145d41ea41b41b3fa9ab7c13b73c6f77dd4fb17e1a019beada74f9bf6
  • Pointer size: 132 Bytes
  • Size of remote file: 3.26 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-20_23-01-12_4.png ADDED

Git LFS Details

  • SHA256: 2c4847b2eff8b5d0f3430cf2517e6d62977f102325d6f3999a3bb1f49b3199f8
  • Pointer size: 132 Bytes
  • Size of remote file: 3.29 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-21_05-01-12_4.png ADDED

Git LFS Details

  • SHA256: 50720a57b34b3e0224ba8bb389596f69e45da9a247c7ffc578ffd91811a51e9e
  • Pointer size: 132 Bytes
  • Size of remote file: 3.29 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-21_16-01-12_4.png ADDED

Git LFS Details

  • SHA256: 4590ca5251f03a21e88f994bbc6f4025d2c4d61f6c7f019440381583c3857f26
  • Pointer size: 132 Bytes
  • Size of remote file: 3.26 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-21_23-01-12_4.png ADDED

Git LFS Details

  • SHA256: c998e54d21d1b5f3f2457c24833943050d83d02b1eaa26ee8410867c72044db2
  • Pointer size: 132 Bytes
  • Size of remote file: 3.28 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_03-01-12_4.png ADDED

Git LFS Details

  • SHA256: 6d36c068369191f6da23a635f64b090f4d5a9c9f86a7c069745a345d63098984
  • Pointer size: 132 Bytes
  • Size of remote file: 3.27 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_04-01-12_4.png ADDED

Git LFS Details

  • SHA256: c60facd11a9d5051a32d530263f64ef7581259e61e50fef938bbc9e50adb8cc0
  • Pointer size: 132 Bytes
  • Size of remote file: 3.27 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_05-01-12_4.png ADDED

Git LFS Details

  • SHA256: d2a34c4c0cfd5135d382e0c50423260e64dd5e475e0473a578312edbded20101
  • Pointer size: 132 Bytes
  • Size of remote file: 3.29 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_11-01-11_4.png ADDED

Git LFS Details

  • SHA256: 782ecd9b2cdbe1a2ca2d01a3bc97e650625b73cd75c143b57967ab558fcabd7a
  • Pointer size: 132 Bytes
  • Size of remote file: 3.26 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_23-01-12_4.png ADDED

Git LFS Details

  • SHA256: 3bc5b55afd34c99cd67cd1e1fec573ac583748933e309c91c95792c98cbc2f9e
  • Pointer size: 132 Bytes
  • Size of remote file: 3.28 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_07-01-12_4.png ADDED

Git LFS Details

  • SHA256: 5ba0234e75526c6f1c22246ef433451ac0cd6b89f1aba2e2b8eb91475f86ecd9
  • Pointer size: 132 Bytes
  • Size of remote file: 3.28 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_16-01-12_4.png ADDED

Git LFS Details

  • SHA256: 73661dfce8587a94d247336c50fb5d1e5d4928d806c7149a7572818eea112cd4
  • Pointer size: 132 Bytes
  • Size of remote file: 3.29 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_17-01-12_4.png ADDED

Git LFS Details

  • SHA256: 18cfed0a1dac1a815eac07814d63586993c9f162b88b775003d43bf2d4637fa2
  • Pointer size: 132 Bytes
  • Size of remote file: 3.3 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_21-01-12_4.png ADDED

Git LFS Details

  • SHA256: 27593059d7a7290f9afb75186805c79120ca62fbfe41e2516363fa2afc8ec284
  • Pointer size: 132 Bytes
  • Size of remote file: 3.28 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_22-01-12_4.png ADDED

Git LFS Details

  • SHA256: 8764edaaf6524a288f424e1f3c35b5c18f8a3ba556f418659449b5ebabdc6e93
  • Pointer size: 132 Bytes
  • Size of remote file: 3.28 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-24_11-01-12_4.png ADDED

Git LFS Details

  • SHA256: 38328a91b1ae648e7246da1732c0a40e0086b46bb6aaf1f6fede2ebe513c3c83
  • Pointer size: 132 Bytes
  • Size of remote file: 3.28 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-24_19-01-12_4.png ADDED

Git LFS Details

  • SHA256: e1773d6bc2598e363b5dfc002113d4ff7ab2cae2fbb0daeb5c24d9de4c6d3fe6
  • Pointer size: 132 Bytes
  • Size of remote file: 3.28 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-24_23-01-12_4.png ADDED

Git LFS Details

  • SHA256: 60aaf6a7d9fa2dfa9acd2c4e7737148f717312ffa076a3b28d7221b94574e2b9
  • Pointer size: 132 Bytes
  • Size of remote file: 3.27 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_00-01-12_4.png ADDED

Git LFS Details

  • SHA256: 3765c47cef12da796199094784f0e0a4267605dac5aa5168c47ea44ff2498493
  • Pointer size: 132 Bytes
  • Size of remote file: 3.22 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_04-01-12_4.png ADDED

Git LFS Details

  • SHA256: c6d14f2bd594ca1c11be5ec31a3e455d0e1db4a267ed4f19b86e7e549c5296dd
  • Pointer size: 132 Bytes
  • Size of remote file: 3.21 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_09-01-12_4.png ADDED

Git LFS Details

  • SHA256: cad5e4862107b2ca8f26acf33520ec5936c30260239b7ba966fdf2a8739713bf
  • Pointer size: 132 Bytes
  • Size of remote file: 3.27 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_18-01-12_4.png ADDED

Git LFS Details

  • SHA256: 124a81dff9bf423dabc3b4b4167a72d1a7128b6d274ba543e1222538cfc1134c
  • Pointer size: 132 Bytes
  • Size of remote file: 3.24 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_21-01-12_4.png ADDED

Git LFS Details

  • SHA256: 59bb7db817b528d58d97e64e6c3e2cc4953f5157f53d0d8ff8396c6568d24db8
  • Pointer size: 132 Bytes
  • Size of remote file: 3.27 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-26_12-01-12_4.png ADDED

Git LFS Details

  • SHA256: f2d4c126f64b3c359a458fab02199f998957d938aa96e4a0f0bc88f548456589
  • Pointer size: 132 Bytes
  • Size of remote file: 3.25 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-26_21-01-12_4.png ADDED

Git LFS Details

  • SHA256: 489ac3b0ff5a4d3fb1bda6db70c3c4cb56f92db60bf9f628ef5dbd28607a7dd8
  • Pointer size: 132 Bytes
  • Size of remote file: 3.27 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-27_08-01-12_4.png ADDED

Git LFS Details

  • SHA256: ee1166fa92f5d21684b789317ea7b6be2a50e0da8d6dd2df63addbaa2a735475
  • Pointer size: 132 Bytes
  • Size of remote file: 3.21 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-27_18-01-12_4.png ADDED

Git LFS Details

  • SHA256: 93f79b56457021893f75353f8e5132529f2189a48ae464c2ee0214ecfab38140
  • Pointer size: 132 Bytes
  • Size of remote file: 3.22 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-28_02-01-12_4.png ADDED

Git LFS Details

  • SHA256: a575a3e91994eab6b411869919f21000f7fa0185e05ca3d8b0891ca5cd2bfc6f
  • Pointer size: 132 Bytes
  • Size of remote file: 3.22 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-28_21-01-12_4.png ADDED

Git LFS Details

  • SHA256: a326b1a89271e24a6a014b18090307670a997057b6ba2d4c82ac4c2174ab1d63
  • Pointer size: 132 Bytes
  • Size of remote file: 3.18 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-29_13-01-12_4.png ADDED

Git LFS Details

  • SHA256: bf88819ca99316bd02e22176775c9c7cc31b8ed28ce95a82484af6161ee5362e
  • Pointer size: 132 Bytes
  • Size of remote file: 3.18 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_06-01-12_4.png ADDED

Git LFS Details

  • SHA256: 71daf045325f8c77352e1f0bed3f89d622d2933216a668e75252c0b608939acf
  • Pointer size: 132 Bytes
  • Size of remote file: 3.22 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_12-01-12_4.png ADDED

Git LFS Details

  • SHA256: b96b8d9da28195ea9443a377e17a2fdc88d4d45e3fbfc135b9a8d0482af4f7ab
  • Pointer size: 132 Bytes
  • Size of remote file: 3.22 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_13-01-12_4.png ADDED

Git LFS Details

  • SHA256: 42055ea72ee7c009338d78f41bce30898a2b49485b414a34316cbbc28dd8bab9
  • Pointer size: 132 Bytes
  • Size of remote file: 3.24 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_17-01-12_4.png ADDED

Git LFS Details

  • SHA256: dc99c7ce58b0e4bb9c51214cdcc430a5106651edc6dd7079ba53eb816033d2f5
  • Pointer size: 132 Bytes
  • Size of remote file: 3.24 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_23-01-12_4.png ADDED

Git LFS Details

  • SHA256: 5129edf94fcec8de15823321bc265995cc4dec9a38907f8309fa371a98bd0636
  • Pointer size: 132 Bytes
  • Size of remote file: 3.19 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_05-01-12_4.png ADDED

Git LFS Details

  • SHA256: 911b551e4ea4cdccfd1636ea51462c0557cea8fd7b2968b3e1014e70fb0f8942
  • Pointer size: 132 Bytes
  • Size of remote file: 3.2 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_10-01-12_4.png ADDED

Git LFS Details

  • SHA256: ab45fff5c704db8ae003ed27ceda01d649def3f4b69be85a22b9b1dbd7213333
  • Pointer size: 132 Bytes
  • Size of remote file: 3.22 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_12-01-12_4.png ADDED

Git LFS Details

  • SHA256: 9ef274f4d15e680a52bf210b5fd6d959649da966c65452dd881b5b36ca40e0af
  • Pointer size: 132 Bytes
  • Size of remote file: 3.23 MB
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_21-01-11_4.png ADDED

Git LFS Details

  • SHA256: 511036a96caa4602b0e82b9e914a2cc583b494b9a96202652ebca9478eb242a9
  • Pointer size: 132 Bytes
  • Size of remote file: 3.23 MB
script.py CHANGED
@@ -14,7 +14,7 @@ def get_all_source_folders(scrape_dir):
14
  print(f"Error: Scrape directory '{scrape_dir}' does not exist.")
15
  return source_folders
16
 
17
- # Walk through the entire directory tree
18
  for root, dirs, files in os.walk(scrape_dir):
19
  for d in dirs:
20
  source_folders[d].append(os.path.join(root, d))
@@ -25,84 +25,109 @@ def get_subfolder_names(folder_path):
25
  """Returns a list of subfolder names immediately inside a given directory."""
26
  return [d for d in os.listdir(folder_path) if os.path.isdir(os.path.join(folder_path, d))]
27
 
28
- def process_folders(scrape_dir, dest_root_path):
29
- # 1. Scrape all folders from the source directory
30
  source_folders = get_all_source_folders(scrape_dir)
31
  if not source_folders:
32
  print("No source folders found.")
33
  return
34
 
35
- # 2. Find matching folders in the destination root path (Second-to-last level)
36
- dest_matches = defaultdict(list)
37
- for root, dirs, files in os.walk(dest_root_path):
38
- for d in dirs:
39
- if d in source_folders:
40
- dest_matches[d].append(os.path.join(root, d))
 
41
 
42
  # Pattern to extract the date and hour: YYYY-MM-DD_HH
43
  file_pattern = re.compile(r'^(\d{4}-\d{2}-\d{2}_\d{2})-\d{2}-\d{2}')
44
 
45
- # 3. Process each matched robot folder
46
- for folder_name, dest_paths in dest_matches.items():
47
- # Check for multiple destination matches to avoid conflicts
48
- if len(dest_paths) > 1:
49
- print(f"NOTICE: Found {len(dest_paths)} destination matches for '{folder_name}'. Skipping.")
50
  continue
51
 
52
- src_paths = source_folders[folder_name]
53
- # Check for multiple source matches
54
- if len(src_paths) > 1:
55
- print(f"NOTICE: Found {len(src_paths)} source matches for '{folder_name}'. Skipping.")
56
- continue
57
-
58
- dest_path = dest_paths[0]
59
- src_path = src_paths[0]
60
 
61
- # 4. Get the last level subfolders (e.g., 'camera') from the source
62
- # We NO LONGER check if these exist in the destination first.
63
- src_subfolders = get_subfolder_names(src_path)
64
 
65
- # 5. Process files INSIDE the source subfolders
66
- for subfolder in src_subfolders:
67
- src_sub_path = os.path.join(src_path, subfolder)
68
- dest_sub_path = os.path.join(dest_path, subfolder)
 
 
 
 
 
 
 
 
 
 
 
69
 
70
- # Ensure the camera folder exists in the destination before copying
71
- os.makedirs(dest_sub_path, exist_ok=True)
72
 
73
- # Get all files in this specific source subfolder and sort chronologically
74
- files = [f for f in os.listdir(src_sub_path) if os.path.isfile(os.path.join(src_sub_path, f))]
75
- files.sort()
76
-
77
- selected_files = {}
78
- for file_name in files:
79
- match = file_pattern.search(file_name)
80
- if match:
81
- hour_key = match.group(1)
82
- if hour_key not in selected_files:
83
- selected_files[hour_key] = file_name
84
-
85
- # 6. Copy the filtered files while checking for duplicates
86
- copied_count = 0
87
- for file_name in selected_files.values():
88
- src_file = os.path.join(src_sub_path, file_name)
89
- dest_file = os.path.join(dest_sub_path, file_name)
 
 
 
 
 
90
 
91
- # Skip if file was already copied
92
- if os.path.exists(dest_file):
93
- continue
 
 
 
 
 
 
 
 
 
 
94
 
95
- shutil.copy2(src_file, dest_file)
96
- copied_count += 1
97
-
98
- if copied_count > 0:
99
- print(f"Copied {copied_count} new files into '{folder_name}/{subfolder}'.")
 
 
 
100
 
101
  print("\nProcess completed.")
102
 
103
  if __name__ == "__main__":
104
  # Define your paths here
105
- SCRAPE_DIRECTORY = "../Datasets/"
106
- DESTINATION_ROOT = "Roots"
107
 
108
- process_folders(SCRAPE_DIRECTORY, DESTINATION_ROOT)
 
 
 
14
  print(f"Error: Scrape directory '{scrape_dir}' does not exist.")
15
  return source_folders
16
 
17
+ # Walk through the entire directory tree to map every available source folder
18
  for root, dirs, files in os.walk(scrape_dir):
19
  for d in dirs:
20
  source_folders[d].append(os.path.join(root, d))
 
25
  """Returns a list of subfolder names immediately inside a given directory."""
26
  return [d for d in os.listdir(folder_path) if os.path.isdir(os.path.join(folder_path, d))]
27
 
28
+ def process_folders(scrape_dir, dest_root_path, dry_run=True):
29
+ # 1. Scrape all folders from the source directory to build our lookup map
30
  source_folders = get_all_source_folders(scrape_dir)
31
  if not source_folders:
32
  print("No source folders found.")
33
  return
34
 
35
+ if not os.path.exists(dest_root_path):
36
+ print(f"Error: Destination root '{dest_root_path}' does not exist.")
37
+ return
38
+
39
+ print("=" * 60)
40
+ print(f"MODE: {'DRY RUN (Mapping Only)' if dry_run else 'EXECUTION (Copying Files)'}")
41
+ print("=" * 60)
42
 
43
  # Pattern to extract the date and hour: YYYY-MM-DD_HH
44
  file_pattern = re.compile(r'^(\d{4}-\d{2}-\d{2}_\d{2})-\d{2}-\d{2}')
45
 
46
+ # 2. Iterate exactly to the second level of the destination directory
47
+ for level1 in os.listdir(dest_root_path):
48
+ level1_path = os.path.join(dest_root_path, level1)
49
+ if not os.path.isdir(level1_path):
 
50
  continue
51
 
52
+ for level2 in os.listdir(level1_path):
53
+ dest_path = os.path.join(level1_path, level2)
54
+ if not os.path.isdir(dest_path):
55
+ continue
 
 
 
 
56
 
57
+ folder_name = level2
 
 
58
 
59
+ # 3. Look up the destination folder in our source map
60
+ src_paths = source_folders.get(folder_name, [])
61
+
62
+ # 4. Handle matching conditions
63
+ if not src_paths:
64
+ if dry_run:
65
+ print(f"[UNMATCHED] Dest: '{folder_name}' -> No source found.")
66
+ continue
67
+
68
+ if len(src_paths) > 1:
69
+ print(f"[CONFLICT] Dest: '{folder_name}' -> Matches {len(src_paths)} sources. Skipping.")
70
+ if dry_run:
71
+ for p in src_paths:
72
+ print(f" - {p}")
73
+ continue
74
 
75
+ # We have exactly one match
76
+ src_path = src_paths[0]
77
 
78
+ if dry_run:
79
+ print(f"[MAPPED] Dest: '{folder_name}' \n <- Source: '{src_path}'")
80
+ continue # Skip the actual file processing during a dry run
81
+
82
+ # ---------------------------------------------------------
83
+ # The following code only runs if dry_run=False
84
+ # ---------------------------------------------------------
85
+
86
+ # 5. Get the subfolders (e.g., 'camera') from the source
87
+ src_subfolders = get_subfolder_names(src_path)
88
+
89
+ # 6. Process files INSIDE the source subfolders
90
+ for subfolder in src_subfolders:
91
+ src_sub_path = os.path.join(src_path, subfolder)
92
+ dest_sub_path = os.path.join(dest_path, subfolder)
93
+
94
+ # Ensure the camera folder exists in the destination
95
+ os.makedirs(dest_sub_path, exist_ok=True)
96
+
97
+ # Get files and sort chronologically
98
+ files = [f for f in os.listdir(src_sub_path) if os.path.isfile(os.path.join(src_sub_path, f))]
99
+ files.sort()
100
 
101
+ selected_files = {}
102
+ for file_name in files:
103
+ match = file_pattern.search(file_name)
104
+ if match:
105
+ hour_key = match.group(1)
106
+ if hour_key not in selected_files:
107
+ selected_files[hour_key] = file_name
108
+
109
+ # 7. Copy the filtered files while checking for duplicates
110
+ copied_count = 0
111
+ for file_name in selected_files.values():
112
+ src_file = os.path.join(src_sub_path, file_name)
113
+ dest_file = os.path.join(dest_sub_path, file_name)
114
 
115
+ if os.path.exists(dest_file):
116
+ continue
117
+
118
+ shutil.copy2(src_file, dest_file)
119
+ copied_count += 1
120
+
121
+ if copied_count > 0:
122
+ print(f"Copied {copied_count} new files into '{folder_name}/{subfolder}'.")
123
 
124
  print("\nProcess completed.")
125
 
126
  if __name__ == "__main__":
127
  # Define your paths here
128
+ SCRAPE_DIRECTORY = "/media/ngaggion/DATA/Raices/Datasets"
129
+ DESTINATION_ROOT = "/media/ngaggion/DATA/Raices/NewData/ArabidopsisDataset"
130
 
131
+ # Run first with dry_run=True to see the mappings.
132
+ # Change to False when you are ready to copy files.
133
+ process_folders(SCRAPE_DIRECTORY, DESTINATION_ROOT, dry_run=False)