Skip to content

TypeError: r_switch.bound_switch.<locals>.<lambda>() got an unexpected keyword argument 'self' #2

Description

@Hibba2312
  • latentcor version: 0.2.4
  • Python version: 3.10
  • Operating System: Ubuntu 20.04

Description

When running the following provided examples:

What I Did

simdata = gen_data(n = 100, tps = ["ter", "con"])
print(simdata['X'][ : 6, : ])

estimate = latentcor(simdata['X'], tps = ["ter", "con"])
print(estimate['R'])

#####The following error was obtained:

estimate = latentcor(simdata['X'], tps = ["ter", "con"])
print(estimate['R'])
Traceback (most recent call last):

  Cell In[14], line 1
    estimate = latentcor(simdata['X'], tps = ["ter", "con"])

  File ~/anaconda3/lib/python3.10/site-packages/latentcor/latentcor.py:509 in latentcor
    R_lower[comb_select] = r_switch.r_approx(self = r_switch, K = K, zratio1 = zratio1, zratio2 = zratio2, comb = comb, tol = tol, ratio  = ratio)

  File ~/anaconda3/lib/python3.10/site-packages/latentcor/latentcor.py:245 in r_approx
    bound = r_switch.bound_switch(self = r_switch, comb = comb, zratio1 = zratio1, zratio2 = zratio2).flatten()

  File ~/anaconda3/lib/python3.10/site-packages/latentcor/latentcor.py:194 in bound_switch
    return method(self = r_switch, zratio1 = zratio1, zratio2 = zratio2)

TypeError: r_switch.bound_switch.<locals>.<lambda>() got an unexpected keyword argument 'self'

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