Dimple anode viewer does not focus on blobs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- data-visualization
Direzione di ricerca
Look for the dimple anode viewer code, likely in a file related to dimple or viewer. The provided helper function shows how to focus on an isosurface. Find where the viewer currently focuses on the nearest atom and modify it to use the isosurface focus method. Test by running the viewer with anomalous density blobs to ensure the view centers on the blob.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The dimpe anode viewer focusses on the nearest atom to the blob. In cases of unmodelled anomalous density, the blob can be outside of the focussed view as it picks the nearest atom.
Encountered a similar problem when making the metal_iid viewer and solved it with this helper function, which focusses on the isosurface itself rather than the nearest atom:
def generate_isosurfaces_and_focus_on_current_peak(
builder: mvs.Builder,
peaks: list[Peak],
focus_peak_num: int,
isovalue=5,
):
for peak_num, _ in enumerate(peaks, start=1):
# Add anomalous double difference map for the current peak
ccp4 = builder.download(url=f"map{peak_num}").parse(format="map")
isosurface_peak = (
ccp4.volume()
.representation(
type="isosurface",
relative_isovalue=isovalue,
show_wireframe=True,
show_faces=False,
)
.color(color="#da21fa")
.opacity(opacity=0.25)
)
if peak_num == focus_peak_num:
isosurface_peak.focus() # focus on the current peak site
# Add 2FO-FC map for the current peak
ccp4_2fo_fc = builder.download(url=f"fmap{peak_num}").parse(format="map")
ccp4_2fo_fc.volume().representation(
type="isosurface",
relative_isovalue=1.5,
show_wireframe=True,
show_faces=False,
).color(color="#2f78d7").opacity(opacity=0.25)
def generate_isosurfaces_and_focus_on_current_peak(
builder: mvs.Builder,
peaks: list[Peak],
focus_peak_num: int,
isovalue=5,
):
for peak_num, _ in enumerate(peaks, start=1):
# Add anomalous double difference map for the current peak
ccp4 = builder.download(url=f"map{peak_num}").parse(format="map")
isosurface_peak = (
ccp4.volume()
.representation(
type="isosurface",
relative_isovalue=isovalue,
show_wireframe=True,
show_faces=False,
)
.color(color="#da21fa")
.opacity(opacity=0.25)
)
if peak_num == focus_peak_num:
isosurface_peak.focus() # focus on the current peak site
# Add 2FO-FC map for the current peak
ccp4_2fo_fc = builder.download(url=f"fmap{peak_num}").parse(format="map")
ccp4_2fo_fc.volume().representation(
type="isosurface",
relative_isovalue=1.5,
show_wireframe=True,
show_faces=False,
).color(color="#2f78d7").opacity(opacity=0.25)
- Lingua principale
- Python
- Stelle
- 2
- Fork
- 3
- Merge medio
- 1g 14h
- PR unite (30g)
- 5
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DiamondLightSource/python-dlstbx
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
DiamondLightSource/python-dlstbx#322 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
DiamondLightSource/python-dlstbx#289 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
DiamondLightSource/python-dlstbx#255 · 4 commenti ·
Tutte le issue di DiamondLightSource/python-dlstbx
Issue simili
-
feedback simulation workshop
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
githubnext/gh-aw-workshop#4455 ·
I maintainer di solito rispondono entro 1 giorno
-
Triage 🩺
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Container scenario crashes without expected_recovery_time, kube DNS example uses retry_waitApertaneeds-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
krkn-chaos/krkn#1627 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
NousResearch/hermes-agent#136483 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno