ISISComputingGroup/genie

load_script type checking - allow `np` datatypes in `cset` / `PVValue`

オープン

#59 opened on 2025/10/09

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Python (0 件のフォーク)auto 404
good first issue

Repository metrics

Stars
 (1 個のスター)
PR merge metrics
 (平均マージ 7d 10h) (30d で 3 merged PRs)

説明

As a user on MERLIN I would like the following snippet to pass type checking:

import numpy as np
from genie_python import genie as g

def runscript():
    for psi in np.arange(30,130,10):
        g.cset("Rot", psi, lowlimit=psi-0.1, highlimit=psi+0.1, runcontrol=True)

It currently fails with:

E: Argument of type "signedinteger[Any]" cannot be assigned to parameter "args" of type "PVValue"

PVValue should also include np types

Acceptance criteria

  • Above snippet passes type checking

コントリビューターガイド