Skip to content

Commit 0d3facb

Browse files
Augustin-Zidekcopybara-github
authored andcommitted
Delete the ref_pos entry only after the pickle is written
PiperOrigin-RevId: 946977350 Change-Id: I033f1e72d88d0a54713838baaecb1ac41e398031
1 parent 4d610bc commit 0d3facb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

run_alphafold_data_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,11 @@ def test_featurisation(self):
226226
ccd=chemical_components.Ccd(),
227227
buckets=None,
228228
)
229-
del featurised_example[0]['ref_pos'] # Depends on specific RDKit version.
230229

231230
with _output('featurised_example.pkl') as (_, output):
232231
output.write(pickle.dumps(featurised_example))
232+
233+
del featurised_example[0]['ref_pos'] # Depends on specific RDKit version.
233234
featurised_example = jax.tree_util.tree_map(_hash_data, featurised_example)
234235
with _output('featurised_example.json') as (result_path, output):
235236
output.write(

0 commit comments

Comments
 (0)