Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Histogram creation after moving the .nxs files to a different folder causes an error. #8

Open
MarcBHahn opened this issue Jul 21, 2022 · 1 comment

Comments

@MarcBHahn
Copy link
Member

Hi,
I think I encountered some bug, or at least unexpected behavior during the histogram creation:

After fitting some datasets in "~/fitting_folder/" and moving them to a different folder "~/histogramming_folder/" the histogram creation with mcsas3_cli_histogrammer.py fails with the following errormessage:

...
assert self.filename.is_file(), f"input filename: {self.filename} must exist"
AssertionError: input filename:~/fitting_folder/input.dat must exist

This seems strange, that it needs the original ascii data from the ".csv/.dat" files, despite having all information needed to create plots and histograms in the ".nxs" files, which are provided as an input parameter to the histogrammer. Furthermore it still searchs in the "old" fitting_folder.

Bests
Marc

@toqduj
Copy link
Collaborator

toqduj commented Oct 13, 2022

Yes, that's a bug indeed, and it's related to the way it reconstructs its child objects from a saved file.

I'll have to do some deep digging to fix that one.

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

No branches or pull requests

2 participants