ISISComputingGroup / ISISComputingGroup/IBEX

Genie python: Setting mbbi with float value causes the mbbi to be set to the zeroth value

Aperta
#6,300 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Nessun dato sulla lingua
Stelle
6
Fork
2
Merge medio
16h 40m
PR unite (30g)
2

Descrizione

As a user/scientist I would like to be able to set an mbbi record using a float value e.g. if we have an mbbi of (Off, 31.6uA, 100mA) when I call g.set_pv(mbbi, 0.0) it is set to Off, g.set_pv(mbbi, 1.0) it is set to 31.6uA and g.set_pv(mbbi, 2.0) it is set to 100mA.

This was the underlying bug when running r.settemp(0.2) on MuSR as we retrieved a value for the heater range (mbbi) of 3.0 from a tpar file and tried to set it. The current behaviour is to set the mbbi to the zeroth value, no matter what value has been set.

Acceptance criteria:

- [ ] A reasonable behaviour is agreed upon when setting mbbis using floats
- This behaviour will have to handle cases where we have a value that doesn't make sense e.g. 2.5
- [ ] The behaviour is implemented

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia dal punto di ingresso Genie Python g.set_pv e riproduci l’impostazione di un mbbi con 0.0, 1.0, 2.0 e un valore frazionario non valido come 2.5. Concorda il comportamento previsto per i valori a virgola mobile validi e non validi, quindi implementa e verifica tale comportamento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
api
Tipo di issue
Bug
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.