Skip to content

In-Memory Data for Powder Histogram Import #181

@Mattpal00

Description

@Mattpal00

I'm currently using GSASIIscriptable as part of an automated XRD analysis workflow and have encountered a limitation with the add_powder_histogram() method, which appears to accept only file paths for importing data. Since my data is already held in memory (as NumPy arrays), I’m required to write temporary files to disk solely for the purpose of importing them into a GSAS-II project.

Is there currently a supported way to import powder data directly from memory (e.g., as a NumPy array, string, or file-like object) without having to create temporary files?

Any guidance would be greatly appreciated.

Metadata

Metadata

Assignees

Labels

Done?Probably complete, but not yet closedScriptingenhancement/bug for GSASIIscriptableenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions