experimaestro 1.8.0rc7__py3-none-any.whl → 1.8.4__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 experimaestro might be problematic. Click here for more details.

@@ -339,6 +339,9 @@ class ConfigInformation:
339
339
  try:
340
340
  if argument.generator:
341
341
  if not isinstance(argument.generator, Generator):
342
+ # Don't set if already set
343
+ if config.__xpm__.values.get(k) is not None:
344
+ continue
342
345
  value = argument.generator()
343
346
  else:
344
347
  sig = inspect.signature(argument.generator)
@@ -38,6 +38,11 @@ class C(Config):
38
38
  b: Param[int]
39
39
 
40
40
 
41
+ class CField(Config):
42
+ a: Param[int] = field(default_factory=lambda: 1)
43
+ b: Param[int]
44
+
45
+
41
46
  class D(Config):
42
47
  a: Param[A]
43
48
 
@@ -79,6 +84,10 @@ def test_param_default():
79
84
  assert_equal(C(a=1, b=2), C(b=2))
80
85
 
81
86
 
87
+ def test_identifier_default_field():
88
+ assert_equal(CField(a=1, b=2), CField(b=2))
89
+
90
+
82
91
  def test_param_inner_eq():
83
92
  assert_equal(D(a=A(a=1)), D(a=A(a=1)))
84
93
 
@@ -290,6 +290,26 @@ def test_default_mismatch():
290
290
  A.__getxpmtype__().getArgument("x")
291
291
 
292
292
 
293
+ # --- Handling default with field
294
+
295
+
296
+ def test_param_default_set():
297
+ """Test that the default setting is well set"""
298
+
299
+ class A0(Config):
300
+ x: Param[int] = 2
301
+
302
+ assert A0().instance().x == 2
303
+ assert A0(x=3).instance().x == 3
304
+
305
+ class A(Config):
306
+ x: Param[int] = field(default_factory=lambda: 2)
307
+
308
+ assert A().instance().x == 2
309
+
310
+ assert A(x=3).instance().x == 3
311
+
312
+
293
313
  # --- Handling help annotations
294
314
 
295
315
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: experimaestro
3
- Version: 1.8.0rc7
3
+ Version: 1.8.4
4
4
  Summary: "Experimaestro is a computer science experiment manager"
5
5
  License: GPL-3
6
6
  Keywords: experiment manager
@@ -17,7 +17,7 @@ experimaestro/core/callbacks.py,sha256=59JfeUgWcCCdIQ3pvh-xNnoRp9BX8f4iOAkgm16wB
17
17
  experimaestro/core/context.py,sha256=41jvgudz4sgMDWrqOhPbgFRJHa3klWKvS3l_L661er0,2600
18
18
  experimaestro/core/identifier.py,sha256=JadBAdW2fOIgoTyMRtKI_RY9SXQP2B1vq1rUcV465Hs,10214
19
19
  experimaestro/core/objects/__init__.py,sha256=ucJY5e17QQ1Kc-GYXeL7g8GFj8rP0XB4g2vrl32uhxY,721
20
- experimaestro/core/objects/config.py,sha256=epISMLkB27N6180K7ZRP30OJYhTKKrmzgB2TtIMXKbg,56762
20
+ experimaestro/core/objects/config.py,sha256=fFg8PXTVDxDJk2A1xvckKGsf2bL6kUdkXmqEAyBVjuI,56943
21
21
  experimaestro/core/objects/config_utils.py,sha256=ZLECGkeIWdzunm8vwWsQhvcSgV1e064BgXbLiZnxSEM,1288
22
22
  experimaestro/core/objects/config_walk.py,sha256=FOSsyJlntglWL8DshxwEbQPmNZ3ZE9r5yOvTKkmRTHw,4198
23
23
  experimaestro/core/objects.pyi,sha256=xvlsRj4u1xsJxbevJl5Ner_HwmxR8x1JlAeIVDJzuy0,6498
@@ -62,7 +62,6 @@ experimaestro/scheduler/state.py,sha256=szTgnI_hAVqU2OWrrIXsZrO3VsrJlHryXUU0r95w
62
62
  experimaestro/scheduler/workspace.py,sha256=KNdxPBwUk7gO8h2utMCrlIVKB-f2Ylqg_IxLc4okp_8,2320
63
63
  experimaestro/scriptbuilder.py,sha256=6GKUkgixLqSEy41sNr-_HNcrjKb8uxaoQ65DywRYsC0,5027
64
64
  experimaestro/server/__init__.py,sha256=F2bzLf2q29Haj2OIbPA26r5WVbaipBNylIozg-As758,10854
65
- experimaestro/server/data/016b4a6cdced82ab3aa1.ttf,sha256=AD8RVBhWpkmmyCNcYmbIk2IkxdYJ5RRC2iTcVVbRT78,189684
66
65
  experimaestro/server/data/0c35d18bf06992036b69.woff2,sha256=gmX2R4Y5fWuDLRygqv3xSa2E5ydZ__qfcnLpGg-wFdE,128352
67
66
  experimaestro/server/data/1815e00441357e01619e.ttf,sha256=gIRDrmyCBDla3YVD2oqQpguTdvsPh-2OjqN9EJWW2AU,210792
68
67
  experimaestro/server/data/219aa9140e099e6c72ed.woff2,sha256=0xv7gdVueQ4Nni-gC4Pfj3FZ-QYxFM3AFIWbHUg5Vsg,135984
@@ -72,17 +71,12 @@ experimaestro/server/data/3a4004a46a653d4b2166.woff,sha256=-jiI7_pbxjPGuygaSdiSf
72
71
  experimaestro/server/data/3baa5b8f3469222b822d.woff,sha256=PTTzCsa7Ivpb9Y0-Uue7bezZnFcdanfV36e-eL7PK1A,339600
73
72
  experimaestro/server/data/4d73cb90e394b34b7670.woff,sha256=_YT4i0lwQNT31ejJ-GNa740-cGwPpS4rb6zxTu6H5SI,164912
74
73
  experimaestro/server/data/4ef4218c522f1eb6b5b1.woff2,sha256=Hmc7qFiWVHlNKtN1woc_GHCkV48rPoR9zEB63QO1esI,215704
75
- experimaestro/server/data/50701fbb8177c2dde530.ttf,sha256=fYGhp8wH4asZbkBJbT9DWel1n3nY7Ig6Rmde5pkSlQs,63348
76
74
  experimaestro/server/data/5d681e2edae8c60630db.woff,sha256=HBNbFRpB4jE4sy0wZePw6rIwpnrv6SXplwnL4QK9YEw,206260
77
75
  experimaestro/server/data/6f420cf17cc0d7676fad.woff2,sha256=NdyopxRaF8jRMG8lo8oJFXjhU5bwsi1h645zJirHVXc,155276
78
- experimaestro/server/data/878f31251d960bd6266f.woff2,sha256=-q5vwKqUzFveUHZkfIF6IyBglqHL7aENHG89idYWPtE,109808
79
76
  experimaestro/server/data/89999bdf5d835c012025.woff2,sha256=40VtEoO511M3p3Pf0Ue_kI_QLAG0v0hXbYYDppsTy-U,25472
80
77
  experimaestro/server/data/914997e1bdfc990d0897.ttf,sha256=VM9ghve7IfnQcq1JShm0aB-lFt0KFM7lLaAdNlGpE6M,68064
81
- experimaestro/server/data/b041b1fa4fe241b23445.woff2,sha256=kWnYvnqBd-WpKk0Ett5_ZQS5OFc79NpYiYccTzdtOEk,24488
82
- experimaestro/server/data/b6879d41b0852f01ed5b.woff2,sha256=iGyGESqATvHd0csgavTIxA40tzwmZSyiMUBKo1prMNk,150020
83
78
  experimaestro/server/data/c210719e60948b211a12.woff2,sha256=1yNqGb8jy7ICcoDo9R3JnWxFl2ou1g3nM4KwNLGKK2g,118684
84
79
  experimaestro/server/data/c380809fd3677d7d6903.woff2,sha256=yUjxJjNBaZs8HpxV2NDz5EZmnQ8rnVVJTGFpIiwCQ6Y,173620
85
- experimaestro/server/data/d75e3fd1eb12e9bd6655.ttf,sha256=zqebNFyvSdYiMJi4orBNcCc-jXxrnj0Dz396JneT6ao,394668
86
80
  experimaestro/server/data/f882956fd323fd322f31.woff,sha256=jpR1jFTCboWqzy09yhrXqtpZBKRgI4-uSEPrxEvELtw,182028
87
81
  experimaestro/server/data/favicon.ico,sha256=PRD32mxgMXg0AIFmjErFs66XQ8qaJiqw_NMS-7n0i90,3870
88
82
  experimaestro/server/data/index.css,sha256=hujPctk1MO9fdUpzFiveEKQzkiABNGmeJOtNoUMqDAY,392757
@@ -127,11 +121,11 @@ experimaestro/tests/test_dependencies.py,sha256=xfWrSkvjT45G4FSCL535m1huLT2ghmyW
127
121
  experimaestro/tests/test_experiment.py,sha256=QWF9aHewL9hepagrKKFyfikKn3iiZ_lRRXl1LLttta0,1687
128
122
  experimaestro/tests/test_findlauncher.py,sha256=8tjpR8bLMi6Gjs7KpY2t64izZso6bmY7vIivMflm-Bc,2965
129
123
  experimaestro/tests/test_forward.py,sha256=9y1zYm7hT_Lx5citxnK7n20cMZ2WJbsaEeY5irCZ9U4,735
130
- experimaestro/tests/test_identifier.py,sha256=L-r0S0dI9ErOZSmqGOPbbUZBvWJ-uzc3sijoyTPyMYU,13680
124
+ experimaestro/tests/test_identifier.py,sha256=zgfpz5UumQftQTHhdw3nmr044Xd7Ntrh7e2hIAoS_PA,13862
131
125
  experimaestro/tests/test_instance.py,sha256=h-8UeoOlNsD-STWq5jbhmxw35CyiwJxtKAaUGmLPgB8,1521
132
126
  experimaestro/tests/test_objects.py,sha256=zycxjvWuJAbPR8-q2T3zuBY9xfmlhf1YvtOcrImHxnc,2431
133
127
  experimaestro/tests/test_outputs.py,sha256=DYzPk5TT_yLumy8SsQbl-S66ivVxJ-ERFrZ68KQZ4KU,781
134
- experimaestro/tests/test_param.py,sha256=R6NTuOBXJiL0wnshwG1KRtGtLUijI5WnBzzdg26qiXo,6899
128
+ experimaestro/tests/test_param.py,sha256=7BltCUm9uhtEupJZ-QSaj7MxuXoUl73NjE8NfzJD5BA,7290
135
129
  experimaestro/tests/test_progress.py,sha256=wtIGQzlV3ldd_wMng11LinVESchW-1J954mCJNlG28E,7580
136
130
  experimaestro/tests/test_serializers.py,sha256=p3WdDsifizn5FDq_jIYTm0Z2AWf62P4B6nnzcVgHoYA,2341
137
131
  experimaestro/tests/test_snippets.py,sha256=rojnyDjtmAMnSuDUj6Bv9XEgdP8oQf2nVc132JF8vsM,3081
@@ -156,8 +150,8 @@ experimaestro/utils/jupyter.py,sha256=JcEo2yQK7x3Cr1tNl5FqGMZOICxCv9DwMvL5xsWdQP
156
150
  experimaestro/utils/resources.py,sha256=j-nvsTFwmgENMoVGOD2Ap-UD3WU85WkI0IgeSszMCX4,1328
157
151
  experimaestro/utils/settings.py,sha256=jpFMqF0DLL4_P1xGal0zVR5cOrdD8O0Y2IOYvnRgN3k,793
158
152
  experimaestro/xpmutils.py,sha256=S21eMbDYsHfvmZ1HmKpq5Pz5O-1HnCLYxKbyTBbASyQ,638
159
- experimaestro-1.8.0rc7.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
160
- experimaestro-1.8.0rc7.dist-info/METADATA,sha256=s7LckvrnTMHZOy9lWIUYPeEFLRt0m6VDrmkmHplLRCY,6173
161
- experimaestro-1.8.0rc7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
162
- experimaestro-1.8.0rc7.dist-info/entry_points.txt,sha256=TppTNiz5qm5xm1fhAcdLKdCLMrlL-eQggtCrCI00D9c,446
163
- experimaestro-1.8.0rc7.dist-info/RECORD,,
153
+ experimaestro-1.8.4.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
154
+ experimaestro-1.8.4.dist-info/METADATA,sha256=a7FkYWKM7_g5gpZgrTWxSLy2x9OyhgPKsuEPIPAdnp8,6170
155
+ experimaestro-1.8.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
156
+ experimaestro-1.8.4.dist-info/entry_points.txt,sha256=TppTNiz5qm5xm1fhAcdLKdCLMrlL-eQggtCrCI00D9c,446
157
+ experimaestro-1.8.4.dist-info/RECORD,,