hzovaro / spaxelsleuth

A package for analysing data from large integral field unit surveys such as the SAMI and Hector Galaxy Surveys.
MIT License
1 stars 1 forks source link

`io.load_df` only prints information about matching DataFrames found on disk if the logger level is set to `INFO` or lower #67

Closed hzovaro closed 4 months ago

hzovaro commented 4 months ago

As per title. If the following code is executed and multiple hector DataFrames are found then it doesn't print information about any of them to the terminal, it just prompts the user to select a file:

from spaxelsleuth.config import load_user_config, configure_logger
load_user_config(".spaxelsleuthconfig.json")
configure_logger(level="WARNING")
from spaxelsleuth.io.io import load_df
load_df(survey="hector")

Output:

io.py (724) load_df(): WARNING: I found 7 files matching the following parameters: {'survey': 'hector'}
Please select a file by typing in a number from 0-6:
hzovaro commented 4 months ago

Fixed in #66 by changing logger statements to simple print statements.