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

Fixed work. this refs #4 #5

Merged
merged 2 commits into from
Mar 10, 2022
Merged

Fixed work. this refs #4 #5

merged 2 commits into from
Mar 10, 2022

Conversation

JeanBilheux
Copy link
Contributor

No description provided.

@JeanBilheux
Copy link
Contributor Author

To check this work, the reviewer can use the IPTS-26894 and one particular run that has the issue

Switch to the right conda environment
source /opt/anaconda/bin/activate /opt/anaconda/envs/ImagingReduction

cd to git and this repo
cd ~/git/NeutronImagingScripts

add to python path
export PYTHONPATH=$PWD:$PYTHONPATH

create tmp output folder
mkd ~/tmp

run reduction
python scripts/mcp_detector_correction.py /SNS/SNAP/IPTS-26894/images/mcp/CT_GS_loopCronTest_10C_Angle_058_723_Goni1_000_000_Goni2_000_000/Run_55098 ~/tmp

if the tif files show up in the ~/tmp folder, it worked.

@KedoKudo KedoKudo self-requested a review March 10, 2022 16:14
@@ -131,7 +138,7 @@ def correct_images(
import os

_file_root = os.path.dirname(os.path.abspath(__file__))
test_data_dir = os.path.join(_file_root, "../data")
test_data_dir = os.path.join(_file_root, "../../../../NeutronImagingScripts/data")
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure why the relative path changed, but it should not affect using the functions.

Comment on lines +44 to +45
# in some rare instances, the MCP creates a duplicate set of the run in the same folder
# we need to only consider the first set in the autoreduction
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is something that occurs very often, we should have a pre-processing to handle the duplicates.
As a quick fix, these changes are okay.
I would recommend writing a new defect/story to address this properly.

setup.py Outdated Show resolved Hide resolved
@KedoKudo KedoKudo merged commit 4805cdb into main Mar 10, 2022
@KedoKudo KedoKudo deleted the 4_multiple_set branch August 29, 2023 19:53
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.

2 participants