Skip to content
Snippets Groups Projects
Commit 953c4c37 authored by Mark HOEBEKE's avatar Mark HOEBEKE
Browse files

Small fixes before release.

parent 308d33d0
No related branches found
No related tags found
2 merge requests!2Sync main with latest from develop,!1Small fixes before release.
......@@ -6,7 +6,7 @@ services:
context: .
image: quay.io/mhoebeke/phytobsdash:${TAG:-latest}
volumes:
- ./config/phytobsdash_config.toml:/app/config/phytobsdash_config.toml
- ./config/phytobsdash_config.toml:/config/phytobsdash_config.toml
networks:
- sno-net
ports:
......
......@@ -12,6 +12,7 @@ logging.basicConfig()
LOGGER = logging.getLogger(__name__)
LOGGER.setLevel(logging.DEBUG)
def build_app(config):
"""
Build the PHYTOBS Dash application.
......@@ -39,14 +40,14 @@ def build_app(config):
className="bd-background"),
html.Div(
dbc.Nav(
[
dbc.NavItem(
dbc.NavLink(
f"{page['name']}", href=page["relative_path"],
[
dbc.NavItem(
dbc.NavLink(
f"{page['name']}", href=page["relative_path"],
)
)
)
for page in dash.page_registry.values()
], pills=True, fill=True),
for page in dash.page_registry.values()
], pills=True, fill=True),
className="bd-top-sections navbar navbar-dark bg-dark"
),
html.A(
......@@ -71,8 +72,8 @@ def build_app(config):
LOGGER.debug("Done build_app")
return app
if __name__ == '__main__':
if __name__ == '__main__':
parser = argparse.ArgumentParser(
prog='PHYTOBS Dashboard'
)
......
......@@ -3,7 +3,7 @@ import toml
import phytobs_data_tools as pdt
import dash_app
config = toml.load('../config/phytobsdash_config.toml')
config = toml.load('/config/phytobsdash_config.toml')
(pdt.analyst_df, pdt.phytobs_df, pdt.hydro_df) = pdt.load_data(config)
pdt.compute_most_abundant_taxa()
pdt.compute_most_abundant_taxon_group()
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment