augustin_s augustin_s
  • Joined on 2025-02-24
augustin_s pushed to master at slic/slic 2025-07-11 22:02:26 +02:00
8033626f02 handle GetToolTip() returning None
augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-11 13:05:37 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

The new version looks great. Please merge it into the PR.

I have only one small request, but I somehow cannot comment on the commit 🙄

mask_dataset = results.get("mask_ds",
augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-11 11:33:55 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

The current additional mask logic is flat-out 💩. No question there.

I have it specifically on my list to merge it with the OTHER additional mask that we have in the DAQ: https://github.com/pau…

augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-11 11:26:02 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

Ah! Now I get the idea!

I think the canonical way of doing this is: https://docs.h5py.org/en/stable/high/dataset.html#h5py.Dataset.astype

I would guess that your version is no extra copy…

augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-11 11:11:39 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

Ah, yes, that was clear :)

The reason I got confused is that for such a case, I would use np.array (i.e., the definite-copy version). np.asarray is the copy-if-needed version that you'd…

augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-10 19:13:19 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

Please change this to:

augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-10 19:13:19 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

Just for my eye, I'd change this to:

augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-10 19:13:19 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

Isn't this the same as:

augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-10 19:13:19 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

Umm, this is odd 😆 Why not:

augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-10 19:13:19 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

I have not seen this before. Is there an advantage over:

augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-10 19:13:19 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

Small useless optimization, but also nicer to read: You can drop the [] and use a generator expression.

augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-10 19:13:19 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

You are changing the mask in place.

augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-10 19:13:19 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

Same as above: drop [].

augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-10 19:13:19 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

Why this maybe-copy?

augustin_s commented on pull request ext-dorofe_e/dap#1 2025-07-10 19:13:19 +02:00
DAP branch including streak finder analysis for Convergent-Beam diffraction experiments

I kinda feel this would be nicer to read:

augustin_s pushed to master at slic/slic 2025-07-09 21:25:56 +02:00
0a65a754a1 break entry columns after 10 entries
augustin_s pushed to master at slic/slic 2025-07-09 18:04:56 +02:00
34e0ad0190 typo
augustin_s pushed to master at slic/slic 2025-07-09 18:03:28 +02:00
2b763a5970 skip unknown parameters