@@ -1454,7 +1454,7 @@ def _saveDepth(self,
1454
1454
starInstDepth = savgol_filter (starInstDepth , 51 , 3 )
1455
1455
1456
1456
if adjDep != 0 :
1457
- adjBy = self . port . pixM * adjDep
1457
+ adjBy = adjDep
1458
1458
portInstDepth += adjBy
1459
1459
starInstDepth += adjBy
1460
1460
@@ -1478,8 +1478,8 @@ def _saveDepth(self,
1478
1478
portDF ['dep_m_smth' ] = smthDep
1479
1479
starDF ['dep_m_smth' ] = smthDep
1480
1480
1481
- portDF ['dep_m_adjBy' ] = str (adjDep ) + ' pixels'
1482
- starDF ['dep_m_adjBy' ] = str (adjDep ) + ' pixels'
1481
+ portDF ['dep_m_adjBy' ] = str (adjDep / self . port . pixM ) + ' pixels'
1482
+ starDF ['dep_m_adjBy' ] = str (adjDep / self . port . pixM ) + ' pixels'
1483
1483
1484
1484
elif detectDep > 0 :
1485
1485
# Prepare depth detection dictionaries
@@ -1546,7 +1546,7 @@ def _saveDepth(self,
1546
1546
starDF ['dep_m' ] = starFinal
1547
1547
1548
1548
if adjDep != 0 :
1549
- adjBy = self . port . pixM * adjDep
1549
+ adjBy = adjDep
1550
1550
portDF ['dep_m' ] += adjBy
1551
1551
starDF ['dep_m' ] += adjBy
1552
1552
@@ -1560,8 +1560,8 @@ def _saveDepth(self,
1560
1560
portDF ['dep_m_smth' ] = smthDep
1561
1561
starDF ['dep_m_smth' ] = smthDep
1562
1562
1563
- portDF ['dep_m_adjBy' ] = str (adjDep ) + ' pixels'
1564
- starDF ['dep_m_adjBy' ] = str (adjDep ) + ' pixels'
1563
+ portDF ['dep_m_adjBy' ] = str (adjDep / self . port . pixM ) + ' pixels'
1564
+ starDF ['dep_m_adjBy' ] = str (adjDep / self . port . pixM ) + ' pixels'
1565
1565
1566
1566
# Export to csv
1567
1567
portDF .to_csv (self .port .sonMetaFile , index = False , float_format = '%.14f' )
0 commit comments