Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "arc-state"
version = "0.9.31"
version = "0.9.32"
description = "State is a machine learning model that predicts cellular perturbation response across diverse contexts."
readme = "README.md"
authors = [
Expand Down
3 changes: 2 additions & 1 deletion src/state/configs/wandb/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
entity: your_entity_name
project: state
local_wandb_dir: ./wandb_logs
tags: []
tags: []
group: null
5 changes: 3 additions & 2 deletions src/state/tx/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import time
import logging
import os
from contextlib import contextmanager
from lightning.pytorch.loggers import CSVLogger, WandbLogger
from lightning.pytorch.loggers.csv_logs import CSVLogger as BaseCSVLogger
import csv
import os
from lightning.pytorch.callbacks import ModelCheckpoint
from os.path import join

Expand Down Expand Up @@ -100,13 +100,14 @@ def get_loggers(
try:
# Check if wandb is available
import wandb

wandb_logger = WandbLogger(
name=name,
project=wandb_project,
entity=wandb_entity,
dir=local_wandb_dir,
tags=cfg["wandb"].get("tags", []) if cfg else [],
group=cfg["wandb"].get("group", None) if cfg else None,
)
if cfg is not None:
wandb_logger.experiment.config.update(cfg)
Expand Down