Download staplebridge/chemistry/protected.py from ChatterjeeLab/StapleBridge: direct link, hf CLI and curl.
- Browser
- Download file 167 Bytes
-
https://huggingface.co/ChatterjeeLab/StapleBridge/resolve/main/staplebridge/chemistry/protected.py
- Command line
-
hf download hf://ChatterjeeLab/StapleBridge/staplebridge/chemistry/protected.py
-
curl -L -o protected.py https://huggingface.co/ChatterjeeLab/StapleBridge/resolve/main/staplebridge/chemistry/protected.py
167 Bytes
| from __future__ import annotations | |
| def can_edit_position(position: int, protected_positions: list[int]) -> bool: | |
| return position not in set(protected_positions) | |