dagster-wandb 0.18.4__tar.gz → 0.18.6__tar.gz
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 dagster-wandb might be problematic. Click here for more details.
- {dagster-wandb-0.18.4/dagster_wandb.egg-info → dagster-wandb-0.18.6}/PKG-INFO +1 -1
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb/io_manager.py +12 -12
- dagster-wandb-0.18.6/dagster_wandb/version.py +1 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6/dagster_wandb.egg-info}/PKG-INFO +1 -1
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb.egg-info/requires.txt +1 -1
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/setup.py +1 -1
- dagster-wandb-0.18.4/dagster_wandb/version.py +0 -1
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/LICENSE +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/MANIFEST.in +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/README.md +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb/__init__.py +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb/launch/__init__.py +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb/launch/configs.py +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb/launch/ops.py +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb/py.typed +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb/resources.py +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb/types.py +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb.egg-info/SOURCES.txt +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb.egg-info/dependency_links.txt +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb.egg-info/not-zip-safe +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/dagster_wandb.egg-info/top_level.txt +0 -0
- {dagster-wandb-0.18.4 → dagster-wandb-0.18.6}/setup.cfg +0 -0
|
@@ -180,7 +180,7 @@ class ArtifactsIOManager(IOManager):
|
|
|
180
180
|
with self.wandb_run() as run:
|
|
181
181
|
parameters = context.metadata.get("wandb_artifact_configuration", {}) # type: ignore
|
|
182
182
|
|
|
183
|
-
serialization_module = parameters.get("serialization_module", {})
|
|
183
|
+
serialization_module = parameters.get("serialization_module", {})
|
|
184
184
|
serialization_module_name = serialization_module.get("name", "pickle")
|
|
185
185
|
|
|
186
186
|
if serialization_module_name not in ACCEPTED_SERIALIZATION_MODULES:
|
|
@@ -194,8 +194,8 @@ class ArtifactsIOManager(IOManager):
|
|
|
194
194
|
**serialization_module_parameters,
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
artifact_type = parameters.get("type", "artifact")
|
|
198
|
-
artifact_description = parameters.get("description")
|
|
197
|
+
artifact_type = parameters.get("type", "artifact")
|
|
198
|
+
artifact_description = parameters.get("description")
|
|
199
199
|
artifact_metadata = {
|
|
200
200
|
"source_integration": "dagster_wandb",
|
|
201
201
|
"source_integration_version": __version__,
|
|
@@ -204,14 +204,14 @@ class ArtifactsIOManager(IOManager):
|
|
|
204
204
|
"source_python_version": platform.python_version(),
|
|
205
205
|
}
|
|
206
206
|
if isinstance(obj, Artifact):
|
|
207
|
-
if parameters.get("name") is not None:
|
|
207
|
+
if parameters.get("name") is not None:
|
|
208
208
|
raise WandbArtifactsIOManagerError(
|
|
209
209
|
"A 'name' property was provided in the 'wandb_artifact_configuration'"
|
|
210
210
|
" metadata dictionary. A 'name' property can only be provided for output"
|
|
211
211
|
" that is not already an Artifact object."
|
|
212
212
|
)
|
|
213
213
|
|
|
214
|
-
if parameters.get("type") is not None:
|
|
214
|
+
if parameters.get("type") is not None:
|
|
215
215
|
raise WandbArtifactsIOManagerError(
|
|
216
216
|
"A 'type' property was provided in the 'wandb_artifact_configuration'"
|
|
217
217
|
" metadata dictionary. A 'type' property can only be provided for output"
|
|
@@ -248,7 +248,7 @@ class ArtifactsIOManager(IOManager):
|
|
|
248
248
|
artifact.description = artifact_description
|
|
249
249
|
else:
|
|
250
250
|
if context.has_asset_key:
|
|
251
|
-
if parameters.get("name") is not None:
|
|
251
|
+
if parameters.get("name") is not None:
|
|
252
252
|
raise WandbArtifactsIOManagerError(
|
|
253
253
|
"A 'name' property was provided in the 'wandb_artifact_configuration'"
|
|
254
254
|
" metadata dictionary. A 'name' property is only required when no"
|
|
@@ -259,13 +259,13 @@ class ArtifactsIOManager(IOManager):
|
|
|
259
259
|
)
|
|
260
260
|
artifact_name = context.get_asset_identifier()[0] # name of asset
|
|
261
261
|
else:
|
|
262
|
-
if parameters.get("name") is None:
|
|
262
|
+
if parameters.get("name") is None:
|
|
263
263
|
raise WandbArtifactsIOManagerError(
|
|
264
264
|
"Missing 'name' property in the 'wandb_artifact_configuration' metadata"
|
|
265
265
|
" dictionary. A 'name' property is required for Artifacts created from"
|
|
266
266
|
" an @op. Alternatively you can use an @asset."
|
|
267
267
|
)
|
|
268
|
-
artifact_name = parameters.get("name")
|
|
268
|
+
artifact_name = parameters.get("name")
|
|
269
269
|
|
|
270
270
|
if context.has_partition_key:
|
|
271
271
|
artifact_name = f"{artifact_name}.{context.partition_key}"
|
|
@@ -418,25 +418,25 @@ class ArtifactsIOManager(IOManager):
|
|
|
418
418
|
) from exception
|
|
419
419
|
|
|
420
420
|
# Add any files: https://docs.wandb.ai/ref/python/artifact#add_file
|
|
421
|
-
add_files = parameters.get("add_files")
|
|
421
|
+
add_files = parameters.get("add_files")
|
|
422
422
|
if add_files is not None and len(add_files) > 0:
|
|
423
423
|
for add_file in add_files:
|
|
424
424
|
artifact.add_file(**add_file)
|
|
425
425
|
|
|
426
426
|
# Add any dirs: https://docs.wandb.ai/ref/python/artifact#add_dir
|
|
427
|
-
add_dirs = parameters.get("add_dirs")
|
|
427
|
+
add_dirs = parameters.get("add_dirs")
|
|
428
428
|
if add_dirs is not None and len(add_dirs) > 0:
|
|
429
429
|
for add_dir in add_dirs:
|
|
430
430
|
artifact.add_dir(**add_dir)
|
|
431
431
|
|
|
432
432
|
# Add any reference: https://docs.wandb.ai/ref/python/artifact#add_reference
|
|
433
|
-
add_references = parameters.get("add_references")
|
|
433
|
+
add_references = parameters.get("add_references")
|
|
434
434
|
if add_references is not None and len(add_references) > 0:
|
|
435
435
|
for add_reference in add_references:
|
|
436
436
|
artifact.add_reference(**add_reference)
|
|
437
437
|
|
|
438
438
|
# Augments the aliases
|
|
439
|
-
aliases = parameters.get("aliases", [])
|
|
439
|
+
aliases = parameters.get("aliases", [])
|
|
440
440
|
aliases.append(f"dagster-run-{self.dagster_run_id[0:8]}")
|
|
441
441
|
if "latest" not in aliases:
|
|
442
442
|
aliases.append("latest")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.18.6"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.18.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|