Skip to content

Commit 9b287ea

Browse files
committed
Rename light_curve_util/ to light_curve/ and light_curve/cc/ to light_curve/fast_ops/.
Also fix a few lint errors in unit tests. PiperOrigin-RevId: 223434695
1 parent 2a6e342 commit 9b287ea

36 files changed

+74
-72
lines changed

research/astronet/light_curve_util/cc/median.h renamed to research/astronet/light_curve/fast_ops/median.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ See the License for the specific language governing permissions and
1212
limitations under the License.
1313
==============================================================================*/
1414

15-
#ifndef TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_UTIL_CC_MEDIAN_H_
16-
#define TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_UTIL_CC_MEDIAN_H_
15+
#ifndef TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_FAST_OPS_MEDIAN_H_
16+
#define TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_FAST_OPS_MEDIAN_H_
1717

1818
#include <algorithm>
1919
#include <iterator>
@@ -70,4 +70,4 @@ typename std::iterator_traits<ForwardIterator>::value_type Median(
7070

7171
} // namespace astronet
7272

73-
#endif // TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_UTIL_CC_MEDIAN_H_
73+
#endif // TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_FAST_OPS_MEDIAN_H_

research/astronet/light_curve_util/cc/median_filter.cc renamed to research/astronet/light_curve/fast_ops/median_filter.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ See the License for the specific language governing permissions and
1212
limitations under the License.
1313
==============================================================================*/
1414

15-
#include "light_curve_util/cc/median_filter.h"
15+
#include "light_curve/fast_ops/median_filter.h"
1616

1717
#include "absl/strings/substitute.h"
18-
#include "light_curve_util/cc/median.h"
18+
#include "light_curve/fast_ops/median.h"
1919

2020
using absl::Substitute;
2121
using std::min;

research/astronet/light_curve_util/cc/median_filter.h renamed to research/astronet/light_curve/fast_ops/median_filter.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ See the License for the specific language governing permissions and
1212
limitations under the License.
1313
==============================================================================*/
1414

15-
#ifndef TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_UTIL_CC_MEDIAN_FILTER_H_
16-
#define TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_UTIL_CC_MEDIAN_FILTER_H_
15+
#ifndef TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_FAST_OPS_MEDIAN_FILTER_H_
16+
#define TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_FAST_OPS_MEDIAN_FILTER_H_
1717

1818
#include <iostream>
1919

@@ -56,4 +56,4 @@ bool MedianFilter(const std::vector<double>& x, const std::vector<double>& y,
5656

5757
} // namespace astronet
5858

59-
#endif // TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_UTIL_CC_MEDIAN_FILTER_H_
59+
#endif // TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_FAST_OPS_MEDIAN_FILTER_H_

research/astronet/light_curve_util/cc/median_filter_test.cc renamed to research/astronet/light_curve/fast_ops/median_filter_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ See the License for the specific language governing permissions and
1212
limitations under the License.
1313
==============================================================================*/
1414

15-
#include "light_curve_util/cc/median_filter.h"
15+
#include "light_curve/fast_ops/median_filter.h"
1616

1717
#include "gmock/gmock.h"
1818
#include "gtest/gtest.h"
19-
#include "light_curve_util/cc/test_util.h"
19+
#include "light_curve/fast_ops/test_util.h"
2020

2121
using std::vector;
2222
using testing::Pointwise;

research/astronet/light_curve_util/cc/median_test.cc renamed to research/astronet/light_curve/fast_ops/median_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ See the License for the specific language governing permissions and
1212
limitations under the License.
1313
==============================================================================*/
1414

15-
#include "light_curve_util/cc/median.h"
15+
#include "light_curve/fast_ops/median.h"
1616

1717
#include "gmock/gmock.h"
1818
#include "gtest/gtest.h"

research/astronet/light_curve_util/cc/normalize.cc renamed to research/astronet/light_curve/fast_ops/normalize.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ See the License for the specific language governing permissions and
1212
limitations under the License.
1313
==============================================================================*/
1414

15-
#include "light_curve_util/cc/normalize.h"
15+
#include "light_curve/fast_ops/normalize.h"
1616

1717
#include <algorithm>
1818

1919
#include "absl/strings/substitute.h"
20-
#include "light_curve_util/cc/median.h"
20+
#include "light_curve/fast_ops/median.h"
2121

2222
using absl::Substitute;
2323
using std::vector;

research/astronet/light_curve_util/cc/normalize.h renamed to research/astronet/light_curve/fast_ops/normalize.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ See the License for the specific language governing permissions and
1212
limitations under the License.
1313
==============================================================================*/
1414

15-
#ifndef TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_UTIL_CC_NORMALIZE_H_
16-
#define TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_UTIL_CC_NORMALIZE_H_
15+
#ifndef TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_FAST_OPS_NORMALIZE_H_
16+
#define TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_FAST_OPS_NORMALIZE_H_
1717

1818
#include <iostream>
1919

@@ -41,4 +41,4 @@ bool NormalizeMedianAndMinimum(const std::vector<double>& x,
4141

4242
} // namespace astronet
4343

44-
#endif // TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_UTIL_CC_NORMALIZE_H_
44+
#endif // TENSORFLOW_MODELS_ASTRONET_LIGHT_CURVE_FAST_OPS_NORMALIZE_H_

0 commit comments

Comments
 (0)