dcnum 0.22.0__py3-none-any.whl → 0.22.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.

Potentially problematic release.


This version of dcnum might be problematic. Click here for more details.

dcnum/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.22.0'
16
- __version_tuple__ = version_tuple = (0, 22, 0)
15
+ __version__ = version = '0.22.1'
16
+ __version_tuple__ = version_tuple = (0, 22, 1)
dcnum/logic/ctrl.py CHANGED
@@ -1,5 +1,6 @@
1
1
  import collections
2
2
  import datetime
3
+ import hashlib
3
4
  import json
4
5
  import logging
5
6
  from logging.handlers import QueueListener
@@ -461,9 +462,17 @@ class DCNumJobRunner(threading.Thread):
461
462
  # This is the identifier appendix that we use to identify this
462
463
  # dataset. Note that we only override the run identifier when
463
464
  # segmentation did actually take place.
464
- mid_ap = "dcn-" + self.pphash[:7]
465
- # This is the current measurement identifier (may be empty).
466
- mid_cur = hw.h5.attrs.get("experiment:run identifier", "")
465
+ mid_ap = f"dcn-{self.pphash[:7]}"
466
+ # This is the current measurement identifier
467
+ mid_cur = hw.h5.attrs.get("experiment:run identifier")
468
+ if not mid_cur:
469
+ # Compute a measurement identifier from the metadata
470
+ m_time = hw.h5.attrs.get("experiment:time", "none")
471
+ m_date = hw.h5.attrs.get("experiment:date", "none")
472
+ m_sid = hw.h5.attrs.get("setup:identifier", "none")
473
+ hasher = hashlib.md5(
474
+ f"{m_time}_{m_date}_{m_sid}".encode("utf-8"))
475
+ mid_cur = str(uuid.UUID(hex=hasher.hexdigest()))
467
476
  # The new measurement identifier is a combination of both.
468
477
  mid_new = f"{mid_cur}_{mid_ap}" if mid_cur else mid_ap
469
478
  hw.h5.attrs["experiment:run identifier"] = mid_new
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dcnum
3
- Version: 0.22.0
3
+ Version: 0.22.1
4
4
  Summary: numerics toolbox for imaging deformability cytometry
5
5
  Author: Maximilian Schlögel, Paul Müller
6
6
  Maintainer-email: Paul Müller <dev@craban.de>
@@ -1,5 +1,5 @@
1
1
  dcnum/__init__.py,sha256=hcawIKS7utYiOyVhOAX9t7K3xYzP1b9862VV0b6qSrQ,74
2
- dcnum/_version.py,sha256=U42NllCG9uy3HhEJGou-86_Q3CYkSAexz4DzViMN24w,413
2
+ dcnum/_version.py,sha256=TDZR4PYucVnLv3HGCbDR09UnpXSYkgAPZlMu5BkdyuA,413
3
3
  dcnum/feat/__init__.py,sha256=jUJYWTD3VIoDNKrmryXbjHb1rGwYtK4b7VPWihYgUoo,325
4
4
  dcnum/feat/event_extractor_manager_thread.py,sha256=5HdCQCywyQ5QC56AMjSqCroqif9oOFyiSFWCe07JojM,7820
5
5
  dcnum/feat/gate.py,sha256=svbObmqpYdqPawpfrsEjTiUPJXf24GrNi8PXTKT-z44,7225
@@ -20,7 +20,7 @@ dcnum/feat/feat_texture/__init__.py,sha256=6StM9S540UVtdFFR3bHa7nfCTomeVdoo7Uy9C
20
20
  dcnum/feat/feat_texture/common.py,sha256=COXHpXS-7DMouGu3WF83I76L02Sr7P9re4lxajh6g0E,439
21
21
  dcnum/feat/feat_texture/tex_all.py,sha256=eGjjNfPpfZw7FA_VNFCIMiU38KD0qcGbxLciYy-tCiA,4097
22
22
  dcnum/logic/__init__.py,sha256=7J3GrwJInNQbrLk61HRIV7X7p69TAIbMYpR34hh6u14,177
23
- dcnum/logic/ctrl.py,sha256=th9xKVqXtmscCteU6Vum3wZb-H2RSyKL5kNpCDEXrlU,34792
23
+ dcnum/logic/ctrl.py,sha256=Je13s1osvgC-JArGBefHK7Hv0XlkqApg0056m6SORTc,35289
24
24
  dcnum/logic/job.py,sha256=H1uDZ1nnNHNWWCe6mS8OWB0Uxc6XUKLISx5xExeplZY,7015
25
25
  dcnum/logic/json_encoder.py,sha256=cxMnqisbKEVf-rVcw6rK2BBAb6iz_hKFaGl81kK36lQ,571
26
26
  dcnum/meta/__init__.py,sha256=AVqRgyKXO1orKnE305h88IBvoZ1oz6X11HN1WP5nGvg,60
@@ -41,8 +41,8 @@ dcnum/write/__init__.py,sha256=QvWHeZmjHI18i-YlGYuzN3i7dVWY9UCReKchrJ-gif0,260
41
41
  dcnum/write/deque_writer_thread.py,sha256=ao7F1yrVKyufgC4rC0Y2_Vt7snuT6KpI7W2qVxcjdhk,1994
42
42
  dcnum/write/queue_collector_thread.py,sha256=d_WfdsZdFnFsiAY0zVMwUlA4juIMeiWYmE_-rezBQCE,11734
43
43
  dcnum/write/writer.py,sha256=e6J8YVqhS7kzkpPIMoDMokJpqSy1WWNdOrwaJof1oVc,15601
44
- dcnum-0.22.0.dist-info/LICENSE,sha256=YRChA1C8A2E-amJbudwMcbTCZy_HzmeY0hMIvduh1MM,1089
45
- dcnum-0.22.0.dist-info/METADATA,sha256=6Qi51lajhxBvhgWzDNXSfcImZr4MroMlCZ1OLNmBrqw,2194
46
- dcnum-0.22.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
47
- dcnum-0.22.0.dist-info/top_level.txt,sha256=Hmh38rgG_MFTVDpUDGuO2HWTSq80P585Het4COQzFTg,6
48
- dcnum-0.22.0.dist-info/RECORD,,
44
+ dcnum-0.22.1.dist-info/LICENSE,sha256=YRChA1C8A2E-amJbudwMcbTCZy_HzmeY0hMIvduh1MM,1089
45
+ dcnum-0.22.1.dist-info/METADATA,sha256=-gR69W-jJHc7X692OjmGgPoEyEx0l0OYM_tllNxtAJ8,2194
46
+ dcnum-0.22.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
47
+ dcnum-0.22.1.dist-info/top_level.txt,sha256=Hmh38rgG_MFTVDpUDGuO2HWTSq80P585Het4COQzFTg,6
48
+ dcnum-0.22.1.dist-info/RECORD,,
File without changes