mirror of
https://gitea.psi.ch/APOG/acsmnode.git
synced 2025-06-29 04:40:48 +02:00
Add code to identify the file path, which is key to find the dima submodule.
This commit is contained in:
@ -1,5 +1,17 @@
|
||||
import sys, os
|
||||
|
||||
try:
|
||||
thisFilePath = os.path.abspath(__file__)
|
||||
print(thisFilePath)
|
||||
except NameError:
|
||||
print("[Notice] The __file__ attribute is unavailable in this environment (e.g., Jupyter or IDLE).")
|
||||
print("When using a terminal, make sure the working directory is set to the script's location to prevent path issues (for the DIMA submodule)")
|
||||
#print("Otherwise, path to submodule DIMA may not be resolved properly.")
|
||||
thisFilePath = os.getcwd() # Use current directory or specify a default
|
||||
|
||||
dimaPath = os.path.normpath(os.path.join(thisFilePath, "..",'..')) # Move up to project root
|
||||
|
||||
print(dimaPath)
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
|
||||
@ -176,6 +188,8 @@ app.layout = dbc.Container([
|
||||
],
|
||||
)
|
||||
|
||||
#@app.callback()
|
||||
|
||||
@app.callback(
|
||||
Output('memory-output','data'),
|
||||
Output('timeseries-plot', 'figure'),
|
||||
|
Reference in New Issue
Block a user