Skip to content

Commit c220c64

Browse files
committed
Update qmb/hubbard.py.
1 parent a6aa631 commit c220c64

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

qmb/hubbard.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ class Model(ModelProto[ModelConfig]):
5757
config_t = ModelConfig
5858

5959
@classmethod
60-
def preparse(cls, input_args: tuple[str, ...]) -> str:
61-
args = tyro.cli(ModelConfig, args=input_args)
62-
return f"Hubbard_{args.m}x{args.n}_t{args.t}_u{args.u}"
60+
def default_group_name(cls, config: ModelConfig) -> str:
61+
return f"Hubbard_{config.m}x{config.n}_t{config.t}_u{config.u}"
6362

6463
@classmethod
6564
def _prepare_hamiltonian(cls, args: ModelConfig) -> dict[tuple[tuple[int, int], ...], complex]:

0 commit comments

Comments
 (0)