# This dataset was taken on id01 in the Bragg geometry on a single Pt nano-crystal, with a maxipix detector


# 0) Set the GPU number in the PYNX_PU if not already done (replace '1' by your trainee number):
export PYNX_PU=.1

# 1) perform a quick analysis. The initial support will be calculated using
# auto-correlation, so no need to supply one.

pynx-cdi-id01 data=alignment_S2280.cxi liveplot


# 2) You can tune the threshold if you want to improve the solution

pynx-cdi-id01 data=alignment_S2280.cxi support_threshold=0.2 liveplot


# 3) Look at the result using silx (look at the phase-amplitude cuts):

silx view *.cxi



# 4) try multiple runs (this is 3D, so try 5-10 runs without liveplot)

pynx-cdi-id01 data=alignment_S2280.cxi support_threshold=0.2 nb_run=10


# You can also replace RAAR by HIO using e.g. nb_raar=0 nb_hio=600
# The same mode analysis as for the Au example can be performed if you have several solutions

