Skip to content

astropy.units.core.UnitTypeError: Can only apply 'log10' function to dimensionless quantities #11

Description

@3fon3fonov

Jorge hi,

I can no longer run tpfplotter because of the error below. I tried on two different machines, same thing.

I am using python 3.8 & astropy==5.1

`WARNING: AstropyDeprecationWarning: The update_default_config function is deprecated and may be removed in a future version. [astroquery._astropy_init]
....
....
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "tpfplotter.py", line 303, in
division = int(np.log10(np.nanmax(np.nanmean(tpf.flux * u.s/u.electron,axis=0))))
File "/home/trifonov/.local/lib/python3.8/site-packages/astropy/units/quantity.py", line 591, in array_ufunc
converters, unit = converters_and_unit(function, method, *inputs)
File "/home/trifonov/.local/lib/python3.8/site-packages/astropy/units/quantity_helper/converters.py", line 174, in converters_and_unit
converters, result_unit = ufunc_helper(function, *units)
File "/home/trifonov/.local/lib/python3.8/site-packages/astropy/units/quantity_helper/helpers.py", line 141, in helper_dimensionless_to_dimensionless
raise UnitTypeError("Can only apply '{}' function to "
astropy.units.core.UnitTypeError: Can only apply 'log10' function to dimensionless quantities`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions