Skip to content

Commit

Permalink
rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaosu-zhu committed Dec 7, 2021
1 parent 8b84028 commit 36dfdf1
Show file tree
Hide file tree
Showing 26 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: clean build

clean:
rm -rf cfmUtils/BUILD
rm -rf vlutils/BUILD

build:
@echo "Install tools"
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Inside of setup.cfg
[metadata]
name = cfmUtils
name = vlutils
version = file: VERSION
description = My package description
long_description = file: README.md #, CHANGELOG.rst, LICENSE.rst
Expand All @@ -13,7 +13,7 @@ classifiers =
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
url = https://github.com/cfm-uestc/cfmUtils
url = https://github.com/cfm-uestc/vlutils
author = Xiaosu Zhu
author_email = aurora.studio@outlook.com

Expand Down
4 changes: 2 additions & 2 deletions test/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from torch import nn
import torch

from cfmUtils.base import DataParallel, Module, Registrar, Restorable
from cfmUtils.metrics.helpers import recursiveCompare
from vlutils.base import DataParallel, Module, Registrar, Restorable
from vlutils.metrics.helpers import recursiveCompare


def _initToOnes(m: nn.Module):
Expand Down
2 changes: 1 addition & 1 deletion test/test_dataset.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
import pytest

from cfmUtils.datasets import Zip, Enumerate
from vlutils.datasets import Zip, Enumerate


class TestDataset:
Expand Down
2 changes: 1 addition & 1 deletion test/test_vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# import pytest
from skimage.color import rgb2hsv as sk_rgb2hsv, hsv2rgb as sk_hsv2rgb

from cfmUtils.vision.colorSpace import rgb2hsv, hsv2rgb
from vlutils.vision.colorSpace import rgb2hsv, hsv2rgb


class TestDataset:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions cfmUtils/base/module.py → vlutils/base/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def register(key):
"""
def _wrapped(fn: Any):
if isinstance(fn, property):
fn.fget._cfmUtilsModuleMappedFunction = key
fn.fget._vlutilsModuleMappedFunction = key
else:
fn._cfmUtilsModuleMappedFunction = key
fn._vlutilsModuleMappedFunction = key
return fn
return _wrapped

Expand All @@ -58,8 +58,8 @@ def __init__(self):
method = getattr(self, methodname)
if isinstance(method, property):
method = method.fget
if hasattr(method, "_cfmUtilsModuleMappedFunction"):
self._functions[method._cfmUtilsModuleMappedFunction] = method
if hasattr(method, "_vlutilsModuleMappedFunction"):
self._functions[method._vlutilsModuleMappedFunction] = method

def _replicate_for_data_parallel(self):
replica = super()._replicate_for_data_parallel()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 36dfdf1

Please sign in to comment.