nexpy / nxrefine

Module to enable [hkl] transformation of single-crystal x-ray scattering
Other
4 stars 5 forks source link

Question about ”Default server settings not defined” #108

Open davy12344 opened 2 months ago

davy12344 commented 2 months ago

Dear developer:

I successfully installed Nxrefine and NeXpy, but I encountered an error when using NeXpy, as shown below.

image

I checked the manual, which mentioned that there should be a "settings.ini" file. However, I couldn't find this file in the resources. The manual (https://nexpy.github.io/nxrefine/server.html?highlight=settings%20ini) does not specify the format for constructing this file. Should it be a Python dictionary or a JavaScript file?

Looking forward to your guidance.

Best regards; Yongheng Li

rayosborn commented 2 months ago

Have you followed the instructions to initialize a directory to contain the nxserver files (see this section)? The settings.ini files should be automatically created as long as the server directory has been defined by running nxserver -d /path/to/server at the command line.

davy12344 commented 2 months ago

Dear Dr. Ray Osborn,

Thank you very much for your assistance; I was able to generate the settings.ini file successfully.

I recently conducted a diffraction experiment at SPring-8 in Japan and now have a large number of CBF files to process. I have been trying to follow the instructions provided on the (https://nexpy.github.io/nxrefine/reduction.html#nxload), but I am encountering difficulties. Specifically, I am facing various errors, such as the one shown below: image

Besides, how can I import a large number of CBF files at once? I tried using the "Import Image Stack" feature, as shown below: image But it seems to show just one picture.

Your guidance would be greatly appreciated.

Besides, Yongheng Li

rayosborn commented 2 months ago

I'm not sure what you mean when you say it only shows one picture. NeXpy doesn't have a built-in 3D viewer. When NeXpy displays a 3D array, it shows a 2D slice, usually with a z-axis value of zero. You can then use the z-tab below the plot to select other z-axis values. Does that help?

davy12344 commented 2 months ago

Thank you for your reply! I have understood how to check all cbf files by change z-axis value.

But I still has this error as shown below when using "Find Peaks":

image

rayosborn commented 1 month ago

To use the 'Find Peaks' dialog, you need to select an entry containing raw data, which is usually called 'f1', 'f2', etc. Do you get this error if you select another entry containing raw data? I am concerned that, if you manually stacked CBF files into the '/entry' group, you will encounter a number of problems.