Skip to content

Commit

Permalink
update display layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Li committed Feb 5, 2025
1 parent c47874f commit e2f2886
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion wastewater_qpcr_app/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
border: 0px solid #222222;
}

#pathogen-menu-id {
#pathogen-menu-id, #update-time-id {
font-size: 0.8rem;
}
11 changes: 5 additions & 6 deletions wastewater_qpcr_app/wastewater_qpcr_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
# Define styles
CONTENT_STYLE = {
'marginTop': '4rem',
"marginLeft": "10rem",
"marginRight": "10rem",
'maxWidth': '80rem',
"padding": "2rem 1rem",
}

Expand Down Expand Up @@ -84,16 +83,15 @@
navbar=True,
),
html.Div([
"Updated on ",
html.Span(id='update-time-id')
],
className='d-flex'
className='d-flex fs-6'
),
]
),
color="dark",
dark=True,
className='w-100 fixed-top container-fluid',
className='fixed-top container-fluid',
)

# Dynamically generate visualization layout based on layout_config
Expand Down Expand Up @@ -125,7 +123,7 @@ def process_data(data_file, std_file=None):
df['Date'] = pd.to_datetime(df['Date'], format='mixed', errors='coerce').dt.strftime('%Y-%m-%d')
df = df[df['Date'].notnull()].reset_index(drop=True)
df.fillna(0, inplace=True)
logging.info(f"Processed data: {data_file} {df.shape} {df.tail()}")
logging.debug(f"Processed data: {data_file} {df.shape} {df.tail()}")
except Exception as err:
logging.error(f"Error processing data file {data_file}: {err}")
raise
Expand Down Expand Up @@ -206,6 +204,7 @@ def process_data(data_file, std_file=None):
)
],
id=block_id,
className='mx-lg-auto',
style=CONTENT_STYLE
)
)
Expand Down

0 comments on commit e2f2886

Please sign in to comment.