Change import statements with try except to enable explicit import of submodules from import to avoid conflicts with parent project.
This commit is contained in:
@ -13,8 +13,11 @@ from plotly.subplots import make_subplots
|
||||
import plotly.graph_objects as go
|
||||
import plotly.express as px
|
||||
#import plotly.io as pio
|
||||
from src.hdf5_ops import get_parent_child_relationships
|
||||
|
||||
try:
|
||||
from dima.src.hdf5_ops import get_parent_child_relationships
|
||||
except ModuleNotFoundError:
|
||||
from src.hdf5_ops import get_parent_child_relationships
|
||||
|
||||
|
||||
def display_group_hierarchy_on_a_treemap(filename: str):
|
||||
|
Reference in New Issue
Block a user