Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 581147243
Change-Id: I54e3dd9a057f7d4e61db1b6259065d7406028dcc
  • Loading branch information
laramiel authored and copybara-github committed Nov 10, 2023
1 parent 480b2b8 commit c498242
Show file tree
Hide file tree
Showing 40 changed files with 135 additions and 132 deletions.
6 changes: 3 additions & 3 deletions python/tensorstore/array_type_caster.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_ARRAY_TYPE_CASTER_H_
#define THIRD_PARTY_PY_TENSORSTORE_ARRAY_TYPE_CASTER_H_
#ifndef PYTHON_TENSORSTORE_ARRAY_TYPE_CASTER_H_
#define PYTHON_TENSORSTORE_ARRAY_TYPE_CASTER_H_

/// \file Defines conversion between NumPy arrays and `tensorstore::Array`.

Expand Down Expand Up @@ -240,4 +240,4 @@ struct type_caster<tensorstore::ContiguousLayoutOrder> {
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_ARRAY_TYPE_CASTER_H_
#endif // PYTHON_TENSORSTORE_ARRAY_TYPE_CASTER_H_
6 changes: 3 additions & 3 deletions python/tensorstore/chunk_layout.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_CHUNK_LAYOUT_H_
#define THIRD_PARTY_PY_TENSORSTORE_CHUNK_LAYOUT_H_
#ifndef PYTHON_TENSORSTORE_CHUNK_LAYOUT_H_
#define PYTHON_TENSORSTORE_CHUNK_LAYOUT_H_

/// \file
///
Expand Down Expand Up @@ -41,4 +41,4 @@ struct type_caster<tensorstore::ChunkLayout::Usage> {
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_CHUNK_CHUNK_LAYOUT_H_
#endif // PYTHON_TENSORSTORE_CHUNK_CHUNK_LAYOUT_H_
6 changes: 3 additions & 3 deletions python/tensorstore/chunk_layout_keyword_arguments.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_CHUNK_LAYOUT_KEYWORD_ARGUMENTS_H_
#define THIRD_PARTY_PY_TENSORSTORE_CHUNK_LAYOUT_KEYWORD_ARGUMENTS_H_
#ifndef PYTHON_TENSORSTORE_CHUNK_LAYOUT_KEYWORD_ARGUMENTS_H_
#define PYTHON_TENSORSTORE_CHUNK_LAYOUT_KEYWORD_ARGUMENTS_H_

/// \file
///
Expand Down Expand Up @@ -573,4 +573,4 @@ constexpr auto WithChunkLayoutKeywordArguments = [](auto callback) {
} // namespace internal_python
} // namespace tensorstore

#endif // THIRD_PARTY_PY_TENSORSTORE_CHUNK_LAYOUT_KEYWORD_ARGUMENTS_H_
#endif // PYTHON_TENSORSTORE_CHUNK_LAYOUT_KEYWORD_ARGUMENTS_H_
6 changes: 3 additions & 3 deletions python/tensorstore/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_CONTEXT_H_
#define THIRD_PARTY_PY_TENSORSTORE_CONTEXT_H_
#ifndef PYTHON_TENSORSTORE_CONTEXT_H_
#define PYTHON_TENSORSTORE_CONTEXT_H_

/// \file Defines the `tensorstore.Context` and `tensorstore.ContextSpec` Python
/// classes.
Expand Down Expand Up @@ -69,4 +69,4 @@ PYBIND11_DECLARE_HOLDER_TYPE(
// Note that `ContextSpecImplPtr` and `ContextImplPtr` are also defined as
// holder types by the generic definition in `intrusive_ptr_holder.h`.

#endif // THIRD_PARTY_PY_TENSORSTORE_CONTEXT_H_
#endif // PYTHON_TENSORSTORE_CONTEXT_H_
6 changes: 3 additions & 3 deletions python/tensorstore/data_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_DATA_TYPE_H_
#define THIRD_PARTY_PY_TENSORSTORE_DATA_TYPE_H_
#ifndef PYTHON_TENSORSTORE_DATA_TYPE_H_
#define PYTHON_TENSORSTORE_DATA_TYPE_H_

/// \file Defines the `tensorstore.dtype` class (corresponding to
/// `tensorstore::DataType`), the `tensorstore.<dtype>` constants, and automatic
Expand Down Expand Up @@ -183,4 +183,4 @@ struct type_caster<tensorstore::internal_python::DataTypeLike> {
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_DATA_TYPE_H_
#endif // PYTHON_TENSORSTORE_DATA_TYPE_H_
6 changes: 3 additions & 3 deletions python/tensorstore/define_heap_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_DEFINE_HEAP_TYPE_H_
#define THIRD_PARTY_PY_TENSORSTORE_DEFINE_HEAP_TYPE_H_
#ifndef PYTHON_TENSORSTORE_DEFINE_HEAP_TYPE_H_
#define PYTHON_TENSORSTORE_DEFINE_HEAP_TYPE_H_

/// \file
///
Expand Down Expand Up @@ -176,4 +176,4 @@ struct type_caster<tensorstore::internal_python::StaticHeapTypeWrapper<T>>
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_DEFINE_HEAP_TYPE_H_
#endif // PYTHON_TENSORSTORE_DEFINE_HEAP_TYPE_H_
6 changes: 3 additions & 3 deletions python/tensorstore/dim_expression.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_DIM_EXPRESSION_H_
#define THIRD_PARTY_PY_TENSORSTORE_DIM_EXPRESSION_H_
#ifndef PYTHON_TENSORSTORE_DIM_EXPRESSION_H_
#define PYTHON_TENSORSTORE_DIM_EXPRESSION_H_

/// \file Defines the `tensorstore.d` object which supports the
/// `tensorstore.d[...].op0...opN` syntax for specifying a Python "dimension
Expand Down Expand Up @@ -581,4 +581,4 @@ struct type_caster<tensorstore::DimRangeSpec> {
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_DIM_EXPRESSION_H_
#endif // PYTHON_TENSORSTORE_DIM_EXPRESSION_H_
6 changes: 3 additions & 3 deletions python/tensorstore/downsample.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_DOWNSAMPLE_H_
#define THIRD_PARTY_PY_TENSORSTORE_DOWNSAMPLE_H_
#ifndef PYTHON_TENSORSTORE_DOWNSAMPLE_H_
#define PYTHON_TENSORSTORE_DOWNSAMPLE_H_

/// \file
///
Expand Down Expand Up @@ -42,4 +42,4 @@ struct type_caster<tensorstore::DownsampleMethod> {
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_DOWNSAMPLE_H_
#endif // PYTHON_TENSORSTORE_DOWNSAMPLE_H_
6 changes: 3 additions & 3 deletions python/tensorstore/future.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_FUTURE_H_
#define THIRD_PARTY_PY_TENSORSTORE_FUTURE_H_
#ifndef PYTHON_TENSORSTORE_FUTURE_H_
#define PYTHON_TENSORSTORE_FUTURE_H_

/// \file
///
Expand Down Expand Up @@ -656,4 +656,4 @@ struct type_caster<tensorstore::internal_python::PythonPromiseObject>
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_FUTURE_H_
#endif // PYTHON_TENSORSTORE_FUTURE_H_
6 changes: 3 additions & 3 deletions python/tensorstore/garbage_collection.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_GARBAGE_COLLECTION_H_
#define THIRD_PARTY_PY_TENSORSTORE_GARBAGE_COLLECTION_H_
#ifndef PYTHON_TENSORSTORE_GARBAGE_COLLECTION_H_
#define PYTHON_TENSORSTORE_GARBAGE_COLLECTION_H_

/// \file
///
Expand Down Expand Up @@ -424,4 +424,4 @@ struct type_caster<tensorstore::internal_python::
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_GARBAGE_COLLECTION_H_
#endif // PYTHON_TENSORSTORE_GARBAGE_COLLECTION_H_
6 changes: 3 additions & 3 deletions python/tensorstore/gil_safe.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_GIL_SAFE_H_
#define THIRD_PARTY_PY_TENSORSTORE_GIL_SAFE_H_
#ifndef PYTHON_TENSORSTORE_GIL_SAFE_H_
#define PYTHON_TENSORSTORE_GIL_SAFE_H_

/// \file
///
Expand Down Expand Up @@ -242,4 +242,4 @@ struct type_caster<tensorstore::internal_python::GilSafeHolder<T>> {
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_GIL_SAFE_H_
#endif // PYTHON_TENSORSTORE_GIL_SAFE_H_
6 changes: 3 additions & 3 deletions python/tensorstore/homogeneous_tuple.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_HOMOGENEOUS_TUPLE_H_
#define THIRD_PARTY_PY_TENSORSTORE_HOMOGENEOUS_TUPLE_H_
#ifndef PYTHON_TENSORSTORE_HOMOGENEOUS_TUPLE_H_
#define PYTHON_TENSORSTORE_HOMOGENEOUS_TUPLE_H_

#include <pybind11/pybind11.h>
// Other headers must be included after pybind11 to ensure header-order
Expand Down Expand Up @@ -53,4 +53,4 @@ HomogeneousTuple<T> SpanToHomogeneousTuple(span<const T> vec) {
} // namespace internal_python
} // namespace tensorstore

#endif // THIRD_PARTY_PY_TENSORSTORE_HOMOGENEOUS_TUPLE_H_
#endif // PYTHON_TENSORSTORE_HOMOGENEOUS_TUPLE_H_
6 changes: 3 additions & 3 deletions python/tensorstore/index.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_INDEX_H_
#define THIRD_PARTY_PY_TENSORSTORE_INDEX_H_
#ifndef PYTHON_TENSORSTORE_INDEX_H_
#define PYTHON_TENSORSTORE_INDEX_H_

/// \file Defines mappings between Python objects and C++ types intended to
/// represent Index and DimensionIndex values.
Expand Down Expand Up @@ -139,4 +139,4 @@ struct type_caster<tensorstore::internal_python::OptionallyImplicitIndex> {
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_INDEX_H_
#endif // PYTHON_TENSORSTORE_INDEX_H_
6 changes: 3 additions & 3 deletions python/tensorstore/index_space.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_INDEX_SPACE_H_
#define THIRD_PARTY_PY_TENSORSTORE_INDEX_SPACE_H_
#ifndef PYTHON_TENSORSTORE_INDEX_SPACE_H_
#define PYTHON_TENSORSTORE_INDEX_SPACE_H_

/// \file
///
Expand Down Expand Up @@ -506,4 +506,4 @@ This is equivalent to :python:`self.domain.size`.
} // namespace internal_python
} // namespace tensorstore

#endif // THIRD_PARTY_PY_TENSORSTORE_INDEX_SPACE_H_
#endif // PYTHON_TENSORSTORE_INDEX_SPACE_H_
6 changes: 3 additions & 3 deletions python/tensorstore/intrusive_ptr_holder.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_INTRUSIVE_PTR_HOLDER_H_
#define THIRD_PARTY_PY_TENSORSTORE_INTRUSIVE_PTR_HOLDER_H_
#ifndef PYTHON_TENSORSTORE_INTRUSIVE_PTR_HOLDER_H_
#define PYTHON_TENSORSTORE_INTRUSIVE_PTR_HOLDER_H_

#include <pybind11/pybind11.h>
// Other headers must be included after pybind11 to ensure header-order
Expand All @@ -32,4 +32,4 @@
PYBIND11_DECLARE_HOLDER_TYPE(T, ::tensorstore::internal::IntrusivePtr<T>,
/*always_construct_holder=*/true)

#endif // THIRD_PARTY_PY_TENSORSTORE_INTRUSIVE_PTR_HOLDER_H_
#endif // PYTHON_TENSORSTORE_INTRUSIVE_PTR_HOLDER_H_
6 changes: 3 additions & 3 deletions python/tensorstore/json_type_caster.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_JSON_TYPE_CASTER_H_
#define THIRD_PARTY_PY_TENSORSTORE_JSON_TYPE_CASTER_H_
#ifndef PYTHON_TENSORSTORE_JSON_TYPE_CASTER_H_
#define PYTHON_TENSORSTORE_JSON_TYPE_CASTER_H_

/// \file
///
Expand Down Expand Up @@ -66,4 +66,4 @@ struct type_caster< ::nlohmann::json> {
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_JSON_TYPE_CASTER_H_
#endif // PYTHON_TENSORSTORE_JSON_TYPE_CASTER_H_
6 changes: 3 additions & 3 deletions python/tensorstore/keyword_arguments.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_KEYWORD_ARGUMENTS_H_
#define THIRD_PARTY_PY_TENSORSTORE_KEYWORD_ARGUMENTS_H_
#ifndef PYTHON_TENSORSTORE_KEYWORD_ARGUMENTS_H_
#define PYTHON_TENSORSTORE_KEYWORD_ARGUMENTS_H_

/// \file
///
Expand Down Expand Up @@ -190,4 +190,4 @@ void ApplyKeywordArguments(Target& target, KeywordArgument<ParamDef>&... arg) {
} // namespace internal_python
} // namespace tensorstore

#endif // THIRD_PARTY_PY_TENSORSTORE_KEYWORD_ARGUMENTS_H_
#endif // PYTHON_TENSORSTORE_KEYWORD_ARGUMENTS_H_
6 changes: 3 additions & 3 deletions python/tensorstore/kvstore.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_KVSTORE_H_
#define THIRD_PARTY_PY_TENSORSTORE_KVSTORE_H_
#ifndef PYTHON_TENSORSTORE_KVSTORE_H_
#define PYTHON_TENSORSTORE_KVSTORE_H_

/// \file
///
Expand Down Expand Up @@ -105,4 +105,4 @@ struct type_caster<tensorstore::internal_python::BytesVector> {
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_KVSTORE_H_
#endif // PYTHON_TENSORSTORE_KVSTORE_H_
6 changes: 3 additions & 3 deletions python/tensorstore/numpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_NUMPY_H_
#define THIRD_PARTY_PY_TENSORSTORE_NUMPY_H_
#ifndef PYTHON_TENSORSTORE_NUMPY_H_
#define PYTHON_TENSORSTORE_NUMPY_H_

/// \file
///
Expand Down Expand Up @@ -73,4 +73,4 @@ bool InitializeNumpy();
} // namespace internal_python
} // namespace tensorstore

#endif // THIRD_PARTY_PY_TENSORSTORE_NUMPY_H_
#endif // PYTHON_TENSORSTORE_NUMPY_H_
6 changes: 3 additions & 3 deletions python/tensorstore/numpy_indexing_spec.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_NUMPY_INDEXING_SPEC_H_
#define THIRD_PARTY_PY_TENSORSTORE_NUMPY_INDEXING_SPEC_H_
#ifndef PYTHON_TENSORSTORE_NUMPY_INDEXING_SPEC_H_
#define PYTHON_TENSORSTORE_NUMPY_INDEXING_SPEC_H_

/// \file Implements NumPy-compatible indexing with some extensions.

Expand Down Expand Up @@ -180,4 +180,4 @@ void DefineNumpyIndexingMethods(
} // namespace internal_python
} // namespace tensorstore

#endif // THIRD_PARTY_PY_TENSORSTORE_NUMPY_INDEXING_SPEC_H_
#endif // PYTHON_TENSORSTORE_NUMPY_INDEXING_SPEC_H_
6 changes: 3 additions & 3 deletions python/tensorstore/python_imports.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_PYTHON_IMPORTS_H_
#define THIRD_PARTY_PY_TENSORSTORE_PYTHON_IMPORTS_H_
#ifndef PYTHON_TENSORSTORE_PYTHON_IMPORTS_H_
#define PYTHON_TENSORSTORE_PYTHON_IMPORTS_H_

/// \file
///
Expand Down Expand Up @@ -58,4 +58,4 @@ void InitializePythonImports();
} // namespace internal_python
} // namespace tensorstore

#endif // THIRD_PARTY_PY_TENSORSTORE_PYTHON_IMPORTS_H_
#endif // PYTHON_TENSORSTORE_PYTHON_IMPORTS_H_
6 changes: 3 additions & 3 deletions python/tensorstore/python_value_or_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_PYTHON_VALUE_OR_EXCEPTION_H_
#define THIRD_PARTY_PY_TENSORSTORE_PYTHON_VALUE_OR_EXCEPTION_H_
#ifndef PYTHON_TENSORSTORE_PYTHON_VALUE_OR_EXCEPTION_H_
#define PYTHON_TENSORSTORE_PYTHON_VALUE_OR_EXCEPTION_H_

#include <pybind11/pybind11.h>
// Other headers must be included after pybind11 to ensure header-order
Expand Down Expand Up @@ -140,4 +140,4 @@ struct type_caster<
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_PYTHON_VALUE_OR_EXCEPTION_H_
#endif // PYTHON_TENSORSTORE_PYTHON_VALUE_OR_EXCEPTION_H_
6 changes: 3 additions & 3 deletions python/tensorstore/result_type_caster.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef THIRD_PARTY_PY_TENSORSTORE_RESULT_TYPE_CASTER_H_
#define THIRD_PARTY_PY_TENSORSTORE_RESULT_TYPE_CASTER_H_
#ifndef PYTHON_TENSORSTORE_RESULT_TYPE_CASTER_H_
#define PYTHON_TENSORSTORE_RESULT_TYPE_CASTER_H_

/// \files
///
Expand Down Expand Up @@ -104,4 +104,4 @@ struct type_caster<tensorstore::Result<void>> {
} // namespace detail
} // namespace pybind11

#endif // THIRD_PARTY_PY_TENSORSTORE_RESULT_TYPE_CASTER_H_
#endif // PYTHON_TENSORSTORE_RESULT_TYPE_CASTER_H_
Loading

0 comments on commit c498242

Please sign in to comment.