Skip to content

Problems accessing scipp.constants #3561

Answered by SimonHeybrock
arm61 asked this question in Scipp Q&A
Discussion options

You must be logged in to vote

Hi! This is by design. Similar to, say SciPy submodules, it is a submodule that needs to be imported explicitly. One reason for this is that it relies on Scipy, which is an optional dependency of Scipp.

If you would like to use sc.constants in code, you can

import scipp as sc
import scipp.constants

sc.constants.h  # works now

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@SimonHeybrock
Comment options

@arm61
Comment options

@SimonHeybrock
Comment options

@jl-wynen
Comment options

@SimonHeybrock
Comment options

Answer selected by SimonHeybrock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3560 on October 11, 2024 11:31.