From b9ee7cf7aa8cd4c323e9d8ad6d0577067447b53b Mon Sep 17 00:00:00 2001
From: joanvallve <jvallve@iri.upc.edu>
Date: Mon, 19 Oct 2020 17:15:37 +0200
Subject: [PATCH] removed nonsense and inconvenient assert

---
 src/snapshot.cpp        | 2 +-
 src/utils/satellite.cpp | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/snapshot.cpp b/src/snapshot.cpp
index 8283723..29623af 100644
--- a/src/snapshot.cpp
+++ b/src/snapshot.cpp
@@ -28,7 +28,7 @@ void Snapshot::computeSatellites(const int& eph_opt)
 {
     assert(obs_!=nullptr && "null obs");
     assert(nav_!=nullptr && "null nav");
-    assert(!satellitesComputed() && "satellites positions already computed");
+    //assert(!satellitesComputed() && "satellites positions already computed");
 
     sats_ = GnssUtils::computeSatellites(*obs_, *nav_, eph_opt);
 }
diff --git a/src/utils/satellite.cpp b/src/utils/satellite.cpp
index 40796f2..f0ebbfc 100644
--- a/src/utils/satellite.cpp
+++ b/src/utils/satellite.cpp
@@ -71,9 +71,6 @@ Satellites computeSatellites(const Observations&             obs,
                                                 dts[2*i],
                                                 dts[2*i+1],
                                                 svh[i]}));
-
-        assert(sat_pair.second && "satellite already computed");
-
         /*//DEBUG
         if (sat_pair.first->second.pos == Eigen::Vector3d::Zero())
             std::cout << "\tsat: " << sat_pair.first->second.sat << " ephemeris not available" << std::endl;
-- 
GitLab