Skip to content

Woollam importer fails in a few places #213

@MrJeremyFisher

Description

@MrJeremyFisher

The Woollam importer fails when importing because the is_float check can't handle non-string values which it seems to get from my data (let me know if a sample would be helpful). Specific error is TypeError: cannot use a string pattern on a bytes-like object. I resolved this by calling str on the input which seems to work for my case. After doing this and setting up a model the solver fails with TypeError: can't multiply sequence by non-int of type 'float' in conversion_wavelength_energy because it's getting an array of tuples like (ang, lamb) rather than the array of wavelengths it expects. I'm not sure how to resolve the second issue and if it's potentially caused by whatever is also causing the first. Any support on this would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions