settings.py 1.2 KB
Newer Older
1
import os
2
# deploy type ["local", "VUO", "K8S"]
3
4
deploy= "VUO"

5
# paths
6
fileFolderPath = {"local" : os.getenv('H5NUVOLA_PATH', "/home/andrea/PycharmProjects/"),
7
                  "VUO" : "/",
8
                  "K8S" : os.getenv('H5NUVOLA_PATH', "./"),
9
                  "rafec" : os.getenv('H5NUVOLA_PATH', "/")}
10
11
12

fileFolderName = {"local" : "imgs",
                  "VUO" : "",
13
14
                  "K8S" : "data",
                  "rafec" : "/"}
15
16
17
18

fileFolder = {}
for k in fileFolderPath.keys():
    fileFolder[k] = fileFolderPath[k] + fileFolderName[k] + "/"
19
20

# server settings
21
host = {"local" : "localhost",
22
        "VUO" : "users-nuvola-dev.elettra.eu",
23
24
        "K8S" : "0.0.0.0",
        "rafec" : "localhost"}
25
port = 5001
26
27
debug = True

28
# customize JStree icons (from fontawesome icons)
Andrea Lorenzon's avatar
Andrea Lorenzon committed
29
30
31
32
closedFolderIcon = "fa fa-folder"
datasetIcon = "fa fa-table"
hdf5Icon = "fa fa-folder"
metadataIcon = "fa fa-file-alt"
33
h5nuvolaLogoIcon = "static/logo/h5nuvola_logo_91_80px_30dpi.png"
Andrea Lorenzon's avatar
Andrea Lorenzon committed
34
35
36
37
38

# customize plots, choose from https://docs.bokeh.org/en/latest/docs/reference/palettes.html#large-palettes

plotPalette_1D = "Viridis256"
plotPalette_3D = "Viridis256"
39
maxPointInHexPlot = 10000   # max n. of point for 2d series hexplot (beamPlot)