hubmapconsortium / codex-pipeline

CODEX data processing code
GNU General Public License v3.0
10 stars 4 forks source link

Missing tags can cause very long warnings in logs #4

Open mkeays opened 4 years ago

mkeays commented 4 years ago

If a TIFF file is missing the "axes" tag, Cytokit issues a warning, in which it prints all the tags found and their contents. Sometimes files have tags such as "LUTs" or "Overlays" which contain large arrays and when these are printed they fill the logs with superfluous text.

One way to get around this is to pass export PYTHONWARNINGS="ignore" before running Cytokit, but this might mean we miss other important warnings.

Are there better ways to circumvent this? E.g. adding the "axes" tag, or removing the "LUTs"/"Overlays" tags?