Skip to content

Commit

Permalink
Merge pull request #71 from PolarizedLightFieldMicroscopy/clean
Browse files Browse the repository at this point in the history
Adjust package import placement
  • Loading branch information
gschlafly authored Dec 11, 2023
2 parents 8330da7 + ab436cf commit d644468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VolumeRaytraceLFM/reconstructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import json
import torch
import numpy as np
import pandas as pd
from tqdm import tqdm
import streamlit as st
import matplotlib.pyplot as plt
from VolumeRaytraceLFM.abstract_classes import BackEnds
from VolumeRaytraceLFM.birefringence_implementations import (
Expand Down Expand Up @@ -478,6 +476,7 @@ def modify_volume(self):
return

def __visualize_and_update_streamlit(self, progress_bar, ep, n_epochs, recon_img_plot, my_loss):
import pandas as pd
percent_complete = int(ep / n_epochs * 100)
progress_bar.progress(percent_complete + 1)
if ep%2==0:
Expand Down Expand Up @@ -519,6 +518,7 @@ def reconstruct(self, output_dir=None, use_streamlit=False):

n_epochs = self.iteration_params['n_epochs']
if use_streamlit:
import streamlit as st
st.write("Working on these ", n_epochs, "iterations...")
my_recon_img_plot = st.empty()
my_loss = st.empty()
Expand Down

0 comments on commit d644468

Please sign in to comment.