DiamondLightSource / DiamondLightSource/mx-bluesky

Parsing Detector Distance to Beam Size lookup file with leading spaces

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

Description

The det_dist_to_beam_converter.py script fails to load the lookup file if any rows in the file start with leading whitespace.

This is being caused by the call to loadtxt not handling/trimming the lines in the file before parsing them

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.