Skip to content

Conversation

@itsdiy0
Copy link
Contributor

@itsdiy0 itsdiy0 commented May 13, 2025

…pelines for avoiding duplicate loaders in config

…pelines for avoiding duplicate loaders in config
PIPELINES_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "pipelines_full")

ignored_methods = ["calculate_stats"]
ignored_methods = ["standard_tomo_diad","standard_tomo","calculate_stats"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Actually there is no more such thing as standard_tomo_diad loader so you can remove it. Do you still need to ignore standard_tomo ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, cause my front-end generates standard_tomo already, both standard_tomo and calculate_stats are methods that have a different pattern compared to the rest of the methods, if I don't ignore it here the final config will have a duplicated standard_tomo method

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see... well you can then do ignored_methods = ["standard_tomo","calculate_stats"]

@dkazanc dkazanc merged commit ef5e281 into DiamondLightSource:main May 20, 2025
2 checks passed
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