rmm commited on
Commit
8f1fe89
·
1 Parent(s): 7f8b3b0

chore: adding a property and tidy up fstring warnings

Browse files
src/input/input_handling.py CHANGED
@@ -178,7 +178,7 @@ def metadata_inputs_one_file(file:UploadedFile, image_hash:str, dbg_ix:int=0) ->
178
  _viewcontainer = st.session_state.container_metadata_inputs
179
  else:
180
  _viewcontainer = st.sidebar
181
- m_logger.warning(f"[W] `container_metadata_inputs` is None, using sidebar")
182
 
183
 
184
 
 
178
  _viewcontainer = st.session_state.container_metadata_inputs
179
  else:
180
  _viewcontainer = st.sidebar
181
+ m_logger.warning("[W] `container_metadata_inputs` is None, using sidebar")
182
 
183
 
184
 
src/main.py CHANGED
@@ -140,7 +140,7 @@ def main() -> None:
140
  # the goal of this tab is to allow selection of the new obsvation's location by map click/adjust.
141
  st.markdown("Coming later! :construction:")
142
  st.markdown(
143
- f"""*The goal is to allow interactive definition for the coordinates of a new
144
  observation, by click/drag points on the map.*""")
145
 
146
 
 
140
  # the goal of this tab is to allow selection of the new obsvation's location by map click/adjust.
141
  st.markdown("Coming later! :construction:")
142
  st.markdown(
143
+ """*The goal is to allow interactive definition for the coordinates of a new
144
  observation, by click/drag points on the map.*""")
145
 
146
 
tests/test_demo_multifile_upload.py CHANGED
@@ -45,6 +45,7 @@ class MockUploadedFile(BytesIO):
45
  self.name = name # Simulate a filename
46
  self.size = size # Simulate file size
47
  self.type = type # Simulate MIME type
 
48
 
49
 
50
  @pytest.fixture
 
45
  self.name = name # Simulate a filename
46
  self.size = size # Simulate file size
47
  self.type = type # Simulate MIME type
48
+ self.file_id = None
49
 
50
 
51
  @pytest.fixture