File "/usr/local/lib/python3.8/dist-packages/bigfeta-1.1.0-py3.8.egg/bigfeta/solve/solve_scipy.py", line 34, in solve
weights.data = np.sqrt(weights.data)
AttributeError: 'NoneType' object has no attribute 'data'
{'A': None, 'weights': None, 'reg': <21x21 sparse matrix of type '<class 'numpy.float64'>'
with 21 stored elements in Compressed Sparse Row format>, 'x': array([[1.0000e+00, 0.0000e+00],
[0.0000e+00, 1.0000e+00],
[2.1500e+03, 0.0000e+00],
[1.0000e+00, 0.0000e+00],
[0.0000e+00, 1.0000e+00],
[8.6010e+03, 0.0000e+00],
[1.0000e+00, 0.0000e+00],
[0.0000e+00, 1.0000e+00],
[4.3010e+03, 0.0000e+00],
[1.0000e+00, 0.0000e+00],
[0.0000e+00, 1.0000e+00],
[0.0000e+00, 0.0000e+00],
[1.0000e+00, 0.0000e+00],
[0.0000e+00, 1.0000e+00],
[1.0752e+04, 0.0000e+00],
[1.0000e+00, 0.0000e+00],
[0.0000e+00, 1.0000e+00],
[6.4510e+03, 0.0000e+00],
[1.0000e+00, 0.0000e+00],
[0.0000e+00, 1.0000e+00],
[1.2902e+04, 0.0000e+00]]), 'rhs': None}
It seems that 'weights' is 'None', but I have no idea why that happens. My settings in the solve.py
are:
montage_example = {
"first_section": 10, # 1020
"last_section": 10, # 1020
"solve_type": "montage",
"close_stack": True,
"transformation": "affine",
"start_from_file": "",
"output_mode": "stack",
"input_stack": {
"owner": "EM_group1",
"project": "lens_corr1",
"name": "mm2_mipmap_test",
"host": "10.8.204.10",
"port": 9001,
"mongo_host": "10.8.204.10",
"mongo_port": 27017, # 27017
"client_scripts": "/home/asap/render-ws-java-client/src/main/scripts",
"collection_type": "stack",
"db_interface": "render"
},
"pointmatch": {
"owner": "EM_group1",
"name": "dev_collection_can_delete",
"host": "10.8.204.10",
"port": 9001,
"mongo_host": "10.8.204.10",
"mongo_port": 27017,
"client_scripts": "/home/asap/render-ws-java-client/src/main/scripts",
"collection_type": "pointmatch", # pointmatch(default)
"db_interface": "render"
},
"output_stack": {
"owner": "EM_group1",
"project": "lens_corr1",
"name": "python_montage_results",
"host": "10.8.204.10",
"port": 9001,
"mongo_host": "10.8.204.10",
"mongo_port": 27017,
"client_scripts": "/home/asap/render-ws-java-client/src/main/scripts",
"collection_type": "stack",
"db_interface": "render"
},
"hdf5_options": {
"output_dir": "/home/asap/example_output",
"chunks_per_file": -1
},
"matrix_assembly": {
"depth": 2,
"montage_pt_weight": 1.0,
"cross_pt_weight": 0.5,
"npts_min": 5,
"npts_max": 500,
"inverse_dz": "True"
},
"regularization": {
"default_lambda": 1.0e3,
"translation_factor": 1.0e-5
}
}
I have tried a lot to debug the above issue, but it still retains. Could you please help me solve it? Thank you very much!