IMAP-Science-Operations-Center / imap_processing

IMAP
MIT License
6 stars 13 forks source link

BUG - logger warnings when only importing a module #717

Open greglucas opened 2 months ago

greglucas commented 2 months ago

Description of the issue

There are extra warnings in the log stream when import imap_processing.utils that can't be avoided.

WARNING:root:Required schema 'RESOLUTION' attribute not present for epoch
WARNING:root:Required schema 'DISPLAY_TYPE' attribute not present for epoch

Steps to reproduce the issue

import imap_processing.utils

Expected behavior (What should happen)

No warnings

Actual behavior (What does happen)

logging to stdout stream

WARNING:root:Required schema 'RESOLUTION' attribute not present for epoch
WARNING:root:Required schema 'DISPLAY_TYPE' attribute not present for epoch

Code Snippet:

Code

Additional notes, affected areas, and suggested fixes

No response

subagonsouth commented 2 months ago

Related to this, I think we need to have different sets of required attributes for the different variable types such as data, support_data, metadata, time. Documentation here: https://spdf.gsfc.nasa.gov/istp_guide/vattributes.html