Skip to content

Commit 4931be1

Browse files
gustavocidornelaswhoseoyster
authored andcommitted
Completes OPEN-4126 Append timestamp / date information to conda env created by the model runner
1 parent 24c7f50 commit 4931be1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2121

2222
### Changed
2323

24+
* Renamed conda environment created by the model runner from `new-openlayer` to `model-runner-env-%m-%d-%H-%M-%S-%f`.
2425
* Modified the zero-index integer checks for `predictionsColumnName` and `labelColumnName` to support dataset uploads with only a sample of the classes.
2526
* Renamed `predictionsColumnName` argument from the datasets' configuration YAML to `predictionScoresColumnName`.
2627
* Migrated package name from [openlayer](https://pypi.org/project/openlayer/) to [openlayer](https://pypi.org/project/openlayer/) due to a company name change.

openlayer/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ast
2+
import datetime
23
import logging
34
import os
45
import shutil
@@ -318,7 +319,7 @@ def __init__(self, model_package: str, logger: Optional[logging.Logger] = None):
318319

319320
# TODO: change env name to the model id
320321
self._conda_environment = CondaEnvironment(
321-
env_name="new-openlayer",
322+
env_name=f"model-runner-env-{datetime.datetime.now().strftime('%m-%d-%H-%M-%S-%f')}",
322323
requirements_file_path=f"{model_package}/requirements.txt",
323324
python_version_file_path=f"{model_package}/python_version",
324325
logger=self.logger,

0 commit comments

Comments
 (0)