Skip to content

Commit 72e4586

Browse files
committed
clean up conda pack name
1 parent 3a37c7e commit 72e4586

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

ads/opctl/operator/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ def __registered_operators():
1414
return [
1515
f
1616
for f in os.listdir(target_dir)
17-
if os.path.isdir(os.path.join(target_dir, f)) and not f.startswith("__")
17+
if os.path.isdir(os.path.join(target_dir, f))
18+
and not f.startswith("__")
19+
and f != "common"
1820
]
1921

2022

ads/opctl/operator/lowcode/anomaly/MLoperator

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
type: anomaly
22
version: v1
3-
conda_type: published
3+
conda_type: service
44
name: Anomaly Detection Operator
55
gpu: no
66
keywords:
77
- Anomaly Detection
88
backends:
9-
- job, local
9+
- job
1010
description: |
1111
Anomaly Detection is the identification of rare items, events, or observations in data that
1212
differ significantly from the expectation. This can be used for several scenarios like asset

tests/operators/anomaly/test_anomaly_simple.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_artificial_big(model):
104104
assert os.path.exists(f"{output_dirname}/report.html"), "Report not generated."
105105

106106

107-
@pytest.mark.parametrize("model", MODELS + ["auto"])
107+
@pytest.mark.parametrize("model", MODELS) # + ["auto"]
108108
def test_artificial_small(model):
109109
# artificial data
110110
d1 = np.random.multivariate_normal(
@@ -131,7 +131,7 @@ def test_artificial_small(model):
131131
yaml_i["spec"]["output_directory"]["url"] = output_dirname
132132
yaml_i["spec"]["contamination"] = 0.3
133133

134-
# run(yaml_i, backend="operator.local", debug=False)
134+
# run(yaml_i, debug=False)
135135

136136
with open(anomaly_yaml_filename, "w") as f:
137137
f.write(yaml.dump(yaml_i))

0 commit comments

Comments
 (0)