You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description
When running the least cost path cli with save_paths=True, the .to_file method fails because the output is not converted to a geodataframe first. At this line here, the pandas concat method is creating a pandas data frame.
Traceback
Traceback (most recent call last):
File "/lustre/eaglefs/shared-projects/rev/modulefiles/alternate_envs/devruns/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/lustre/eaglefs/shared-projects/rev/modulefiles/alternate_envs/devruns/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/lustre/eaglefs/shared-projects/rev/modulefiles/alternate_repos/reVX/reVX/least_cost_xmission/least_cost_paths_cli.py", line 386, in <module>
main(obj={})
File "/lustre/eaglefs/shared-projects/rev/modulefiles/alternate_envs/devruns/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/lustre/eaglefs/shared-projects/rev/modulefiles/alternate_envs/devruns/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/lustre/eaglefs/shared-projects/rev/modulefiles/alternate_envs/devruns/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/lustre/eaglefs/shared-projects/rev/modulefiles/alternate_envs/devruns/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/lustre/eaglefs/shared-projects/rev/modulefiles/alternate_envs/devruns/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/lustre/eaglefs/shared-projects/rev/modulefiles/alternate_envs/devruns/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/lustre/eaglefs/shared-projects/rev/modulefiles/alternate_repos/reVX/reVX/least_cost_xmission/least_cost_paths_cli.py", line 227, in local
least_costs.to_file(fpath_out, driver="GPKG", index=False)
File "/lustre/eaglefs/shared-projects/rev/modulefiles/alternate_envs/devruns/lib/python3.9/site-packages/pandas/core/generic.py", line 5902, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'to_file'
The text was updated successfully, but these errors were encountered:
Bug Description
When running the least cost path cli with save_paths=True, the .to_file method fails because the output is not converted to a geodataframe first. At this line here, the pandas concat method is creating a pandas data frame.
Traceback
The text was updated successfully, but these errors were encountered: