Closed alecomunian closed 1 year ago
Hello Alessandro,
Thank you for your questions/remarks. I have considered and integrate them to the next commit but to answer you in details:
i>0
and if it is the case, then bot will be defined. So no problem here normally.I hope it answers to your questions and thank you again to improve ArchPy !
Amitiés, Ludovic
Hi Ludovic, I have some questions that should help me to better understand the function
add_gap
ininputs.py
. If I understand correctly, when there is some missing information in your data, thenadd_gap
tries to fill the gap by adding a "None" unit/facies in that segment of borehole. Hereinafter my questions: 1) Maybe in the previous merge I asked you, I was too strict by suggesting an "Error" when the top of a facies is below the top of a borehole. Therefore, if you want I have just committed a new version with a "warning" in place of an "error message". If you want I can ask you another "merge" for this. 2) When I editinputs.py
in Spyder, Pyflakes warns about the fact that the variablebot
is undefined (on the lineif i > 0 and bot != top:
and the one just below). There might be the risk that when you calladd_gap
with this variablebot
undefined this could create some trouble? 3) In some cases with my data I haveSettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame
. This complaints often comes fromadd_gap
, at the linelay=idata.iloc[0]
. If I replace this with something likelay=copy.deepcopy(idata.iloc[0])
the warning disappears. Do you think doing this edit might make sense? 4) To further testadd_gap
I intentionally raised the $z$ coordinate of one well above the firsttop
definition. What should be the behavior of the code in this case?Thank you in advance. Bests, Alessandro