jiafucang

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: BSS run error on data type #148
    jiafucang
    Participant

    Hi David,

    The BSS works. Due to a patsy 0.4.0 version will give numeric error:
    Running the statistical model. This may take a while…
    Something went wrong. Please send this error message to the developers.
    Unexpected error: <type ‘exceptions.ValueError’>
    Traceback (most recent call last):
    File “bss_run.py”, line 89, in bss_run
    statsresult = statsengine.run()
    File “C:\Miniconda\lib\site-packages\bss\stats_engine.py”, line 88, in run
    statsresult = self.commands[self.model.analysis_type + ‘_’ + self.model.stat_test](self.model, self.stats_data)
    File “C:\Miniconda\lib\site-packages\bss\cbm_stats.py”, line 242, in anova_np
    X_design_full = dmatrix(model.fullmodel, data=sdata.demographic_data) # Design matrix for full model
    File “C:\Miniconda\lib\site-packages\patsy\highlevel.py”, line 278, in dmatrix
    NA_action, return_type)
    File “C:\Miniconda\lib\site-packages\patsy\highlevel.py”, line 152, in _do_highlevel_design
    NA_action)
    File “C:\Miniconda\lib\site-packages\patsy\highlevel.py”, line 57, in _try_incr_builders
    NA_action)
    File “C:\Miniconda\lib\site-packages\patsy\build.py”, line 706, in design_matrix_builders
    categories=None)
    File “C:\Miniconda\lib\site-packages\patsy\design_info.py”, line 88, in __init__
    raise ValueError(“For numerical factors, num_columns ”
    ValueError: For numerical factors, num_columns must be an int
    None
    Elapsed time 0.526000022888 sec.

    I updated the patsy to version 0.4.1

    Now it works great.

    Thank you very much!

    Best,
    Fucang

    in reply to: BSS run error on data type #145
    jiafucang
    Participant

    Hi David,

    Thank you very much, I updated to new version, and the problem is fixed. But I encounter some problem related to Miniconda packages, working on that. If the work is done, I will let you know.

    Best,
    Fucang

Viewing 2 posts - 1 through 2 (of 2 total)