Skip to content

Commit

Permalink
Merge branch 'master' into final
Browse files Browse the repository at this point in the history
Conflicts:
	cellbox/cellbox/__init__.py
	cellbox/cellbox/dataset.py
	cellbox/cellbox/kernel.py
	cellbox/cellbox/model.py
	cellbox/cellbox/train.py
	cellbox/cellbox/utils.py
  • Loading branch information
Phuc Nguyen committed Aug 27, 2023
2 parents 991b52a + 0ae7b99 commit 8c8b83d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion cellbox/cellbox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@
from cellbox.version import __version__, VERSION, get_msg

get_msg()
#
9 changes: 6 additions & 3 deletions cellbox/cellbox/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@

__version__ = '0.1.0'
VERSION = __version__
# TODO(desmondyuan): update 0.3.3
# * new function docstrings
# * remove the binder implementation
# * add basic tests

def get_msg() -> None:
"""Print the version history."""

def get_msg():
"""get version history"""
# for test: installation completed
changelog = [
"""
version 0.1.0
Expand Down
2 changes: 2 additions & 0 deletions scripts/main_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@


def set_seed(in_seed):
"""Sets random seeds for numpy and tensorflow."""
int_seed = int(in_seed)
torch.manual_seed(int_seed)
np.random.seed(int_seed)


def prepare_workdir(in_cfg):
"""Creates the working directory for each experiment and generates necessary files."""
# Read Data
in_cfg.root_dir = os.getcwd()
in_cfg.node_index = pd.read_csv(in_cfg.node_index_file, header=None, names=None) \
Expand Down

0 comments on commit 8c8b83d

Please sign in to comment.