Skip to content

Add TransmissionAbsorptionConvertor example#180

Open
hrobarts wants to merge 1 commit intomainfrom
how_to_2_transmission_absorption
Open

Add TransmissionAbsorptionConvertor example#180
hrobarts wants to merge 1 commit intomainfrom
how_to_2_transmission_absorption

Conversation

@hrobarts
Copy link
Copy Markdown
Contributor

@hrobarts hrobarts commented Oct 1, 2024

No description provided.

@hrobarts hrobarts linked an issue Oct 1, 2024 that may be closed by this pull request
Copy link
Copy Markdown
Member

@lauramurgatroyd lauramurgatroyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hrobarts
I noticed that the result after providing the arguments is the same as before.
It might be more beneficial to use a (probably synthetic) example dataset where we have some low and high outliers so that we can demonstrate a difference that has been made by using the parameters.

I also had an issue downloading the walnut dataset. Perhaps we need to open an issue in CIL? It needs further investigation

Comment on lines +24 to +26
"from cil.utilities import dataexample\n",
"dataexample.WALNUT.download_data(data_dir='.', prompt=False)\n",
"data = dataexample.WALNUT.get('.')"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only worked for me if I set prompt=True
With prompt=False:

image

"cell_type": "markdown",
"metadata": {},
"source": [
"Create a `TransmissionAbsorptionConvertor` procesor to convert from x-ray transmission data to x-ray absorption data using the Beer-Lambert law "
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Create a `TransmissionAbsorptionConvertor` procesor to convert from x-ray transmission data to x-ray absorption data using the Beer-Lambert law "
"Create a `TransmissionAbsorptionConvertor` processor to convert from x-ray transmission data to x-ray absorption data using the Beer-Lambert law "

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.

How to prepare data: TransmissionAbsorptionConverter

2 participants