Skip to content

Commit 860307b

Browse files
committed
Typo
1 parent 4bf6ec5 commit 860307b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/oneqmc/entrypoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
def load_chkpt_file(chkpt: str, discard_sampler_state: bool) -> Tuple[TrainState, int]:
2121
if not os.environ["ORBFORMER_PICKLE_LOADING"] == "1":
2222
raise PermissionError(
23-
"Loading pickle files is disable for security. Set ORBFORMER_PICKLE_LOADING=1 to allow"
23+
"Loading pickle files is disabled for security. Set ORBFORMER_PICKLE_LOADING=1 to allow"
2424
)
2525
with open(chkpt, "rb") as chkpt_file:
2626
init_step, (smpl_state, param_state, opt_state) = pickle.load(chkpt_file)
@@ -34,7 +34,7 @@ def load_chkpt_file(chkpt: str, discard_sampler_state: bool) -> Tuple[TrainState
3434
def load_density_chkpt_file(chkpt: str, discard_sampler_state: bool) -> Tuple[Tuple, int]:
3535
if not os.environ["ORBFORMER_PICKLE_LOADING"] == "1":
3636
raise PermissionError(
37-
"Loading pickle files is disable for security. Set ORBFORMER_PICKLE_LOADING=1 to allow"
37+
"Loading pickle files is disabled for security. Set ORBFORMER_PICKLE_LOADING=1 to allow"
3838
)
3939
with open(chkpt, "rb") as chkpt_file:
4040
init_step, (param_state, opt_state) = pickle.load(chkpt_file)

src/oneqmc/log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def last(self):
135135
while self.fast_chkpts:
136136
if not os.environ["ORBFORMER_PICKLE_LOADING"] == "1":
137137
raise PermissionError(
138-
"Loading pickle files is disable for security. Set ORBFORMER_PICKLE_LOADING=1 to allow"
138+
"Loading pickle files is disabled for security. Set ORBFORMER_PICKLE_LOADING=1 to allow"
139139
)
140140
with self.fast_chkpts.pop(-1).path.open("rb") as f:
141141
step_fast, last_chkpt_fast = pickle.load(f)
@@ -148,7 +148,7 @@ def last(self):
148148
while self.slow_chkpts:
149149
if not os.environ["ORBFORMER_PICKLE_LOADING"] == "1":
150150
raise PermissionError(
151-
"Loading pickle files is disable for security. Set ORBFORMER_PICKLE_LOADING=1 to allow"
151+
"Loading pickle files is disabled for security. Set ORBFORMER_PICKLE_LOADING=1 to allow"
152152
)
153153
with self.slow_chkpts.pop(-1).path.open("rb") as f:
154154
step_slow, last_chkpt_slow = pickle.load(f)

0 commit comments

Comments
 (0)