pofff.jobs.metric module
Plot spatial results and compute Wasserstein (EMD) distances between simulated and experimental segmentations.
- pofff.jobs.metric.before_emd(model_result, experimental_data, indx)
Create PNG images from segmentation maps and compute EMD. PNG round-trip is required to preserve original behavior.
- pofff.jobs.metric.calculate_emd(file_1, file_2)
Compute Wasserstein distance between two images. Reproduces the original numerical behavior exactly.
- pofff.jobs.metric.generate_segment_map(file_name, xlim, zlim, satmin, conmin)
Convert continuous saturation and concentration fields into a discrete segmentation map.
- pofff.jobs.metric.main()
Segment maps at requested times and compute total EMD score.