Skip to content

Read selected databank not just the first - #373

Open
MaxPelly wants to merge 7 commits into
AdvancedPhotonSource:mainfrom
MaxPelly:multi_import_fix
Open

MaxPelly wants to merge 7 commits into
AdvancedPhotonSource:mainfrom
MaxPelly:multi_import_fix

Conversation

@MaxPelly

Copy link
Copy Markdown
Contributor

Update add_powder_histogram function to read the selected databank if multiple = False. Currently just always reads the first.
Fixes #372.
There does seem to be some work in implementing another solution using rd.selections in the generic importer however this is overwritten by the Reader, so this seems like the cleanest solution at the moment.

Update add_powder_histogram function to read the selected databank if multiple = False. Currently just always reads the first.
@MaxPelly

Copy link
Copy Markdown
Contributor Author

No, the actual issues was the reader was being reinitialised after the generic importer sets rd.selections. Moving the reinitialise step to before this fixes everything

@MaxPelly

Copy link
Copy Markdown
Contributor Author

A similar issue in the GUI import causing multi file imports to lose the selections after the first file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

G2Script add_powder_histogram allways reads first bank when multi=False

1 participant