Skip to content

Commit

Permalink
Push to version 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amogh7joshi committed Jan 4, 2024
1 parent 9a9726e commit 189abf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion agml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = '0.5.2'
__version__ = '0.6.0'
__all__ = ['data', 'synthetic', 'backend', 'viz', 'io']


Expand Down
10 changes: 6 additions & 4 deletions tests/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,35 @@
_USED_DATASETS = ['bean_disease_uganda', 'apple_flower_segmentation', 'apple_detection_usa']
_PREEXISTING_DATASETS = []


def _find_preexisting_datasets():
global _USED_DATASETS, _PREEXISTING_DATASETS, BASE_PATH
for dataset in _USED_DATASETS:
if os.path.exists(os.path.join(BASE_PATH, dataset)) \
and os.path.isdir(os.path.join(BASE_PATH, dataset)):
_PREEXISTING_DATASETS.append(dataset)


def _remove_new_datasets():
global _USED_DATASETS, _PREEXISTING_DATASETS, BASE_PATH
for dataset in _USED_DATASETS:
if dataset not in _PREEXISTING_DATASETS:
shutil.rmtree(dataset)


def pre_test_configure():
_find_preexisting_datasets()


def post_test_cleanup():
_remove_new_datasets()


def execute_tests():
pre_test_configure()
pytest.main()
post_test_cleanup()


if __name__ == '__main__':
execute_tests()




0 comments on commit 189abf4

Please sign in to comment.