Skip to content

micado.flatlamp() not accepting parameters #123

@oczoske

Description

@oczoske
In [177]: simtp.micado.flatlamp(fraction=1)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[177], line 1
----> 1 simtp.micado.flatlamp(fraction=1)

File ~/ELT_Development/ScopeSim_Templates/scopesim_templates/utils/general_utils.py:74, in add_function_call_str.<locals>.wrapper(*args, **kwargs)
     72 call_str = function_call_str(func, args, kwargs)
     73 logging.debug("Calling %s ...", call_str)
---> 74 src = func(*args, **kwargs)
     75 src.meta["object"] = func.__name__
     76 src.meta["function_call"] = call_str

TypeError: flatlamp() got an unexpected keyword argument 'fraction'

This must have something to do with the decorator in micado/__init__.py:

@add_function_call_str
def flatlamp():
    return _flatlamp()

as simtp.micado._flatlamp(fraction=1) works!

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIHow users interact with the software

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions