Skip to content

Commit

Permalink
Made a list of dicts in stead of a df. SHould be fgaster to caoncaten…
Browse files Browse the repository at this point in the history
…ate later.
  • Loading branch information
Julio Mateos Langerak committed Feb 6, 2024
1 parent d689dd3 commit ebbc9fd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/microscopemetrics/samples/psf_beads.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def run(self) -> bool:

## Populate output
output_bead_crops = {}
bead_properties = pd.DataFrame()
bead_properties = []

for image_label, input_image in self.input.psf_beads_images.items():
## Image linked information
Expand All @@ -482,7 +482,7 @@ def run(self) -> bool:
)

# Append data to beads table
bead_properties = bead_properties.append(
bead_properties.append(
{
"image_name": input_image.name,
"channel_nr": ch,
Expand All @@ -508,7 +508,6 @@ def run(self) -> bool:
"y_fwhm_micron": bead_fwhms_micron[image_label][ch][i][1],
"x_fwhm_micron": bead_fwhms_micron[image_label][ch][i][2],
"considered_axial_edge": bead_considered_axial_edge[image_label][ch][i],

}
)

Expand Down

0 comments on commit ebbc9fd

Please sign in to comment.