ISISNeutronMuon / ISISNeutronMuon/MDMC

GPO only returns integer values for parameters when given integer constraints

Open
#1,489 0 comments 0 reactions 0 assignees View on GitHub
bug P4
Dominant language
Python
Stars
4
Forks
0
Avg merge
2d 4h
Merged PRs (30d)
5

Description

**Description of the error**
If a parameter is given constraints which are both integers, a GPO optimizer will only consider integer values for that parameter, even if it is given a float initial value
**Describe the expected result**
GPO would return a float value for the parameter no matter the type of the constraints

**Describe the actual result**
GPO returns only integer values for the parameter

**Suggested fix**
Cast all constraints to float before optimisation

**Additional details**
![image](https://github.com/user-attachments/assets/3a591498-9aec-49b6-8a4c-6dc68140f452)
![image](https://github.com/user-attachments/assets/b557cf7e-fff0-4200-beb9-09c31e2ab4ad)
![image](https://github.com/user-attachments/assets/4809bd8e-898a-4ecc-9c2a-05afe4e4a4b3)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.