set_solution_to_custom 是 Gempy 的 gempy.core.solution.Solution 类中的一个方法。
该方法的作用是将一个已有的 Solution 实例转变成用户自定义的 Solution 实例。在转换之后,用户就可以对其进行自定义操作。
set_solution_to_custom(self)
# 创建 Solution 实例
sol = Solution(...)
# 将 Solution 实例转变为自定义实例
sol.set_solution_to_custom()
# 对自定义实例进行操作
...
如果用户已经对 Solution 实例进行了操作,那么在调用 set_solution_to_custom 方法之后,之前的操作将被覆盖。因此,建议在调用 set_solution_to_custom 方法之前,先将数据备份。