Commit e8acdd69 authored by Dzmitry Poloyko (EPAM)'s avatar Dzmitry Poloyko (EPAM)
Browse files

Merge branch 'community-master' into...

Merge branch 'community-master' into feature/GONRG-397_pass_gcp_credentials_via_options and update Python wrappers accordingly
parents 181c2c8f 3dcdc736
This diff is collapsed.
......@@ -27,10 +27,10 @@ PyGlobalState::initModule(py::module& m)
py::class_<GlobalState, std::unique_ptr<GlobalState>>
GlobalState_(m,"GlobalState", OPENVDS_DOCSTRING(GlobalState));
GlobalState_.def("getBytesDownloaded" , static_cast<uint64_t(GlobalState::*)(OpenOptions::ConnectionType)>(&GlobalState::GetBytesDownloaded), py::arg("connectionType"), OPENVDS_DOCSTRING(GlobalState_GetBytesDownloaded));
GlobalState_.def("getChunksDownloaded" , static_cast<uint64_t(GlobalState::*)(OpenOptions::ConnectionType)>(&GlobalState::GetChunksDownloaded), py::arg("connectionType"), OPENVDS_DOCSTRING(GlobalState_GetChunksDownloaded));
GlobalState_.def("getBytesDecompressed" , static_cast<uint64_t(GlobalState::*)(OpenOptions::ConnectionType)>(&GlobalState::GetBytesDecompressed), py::arg("connectionType"), OPENVDS_DOCSTRING(GlobalState_GetBytesDecompressed));
GlobalState_.def("getChunksDecompressed" , static_cast<uint64_t(GlobalState::*)(OpenOptions::ConnectionType)>(&GlobalState::GetChunksDecompressed), py::arg("connectionType"), OPENVDS_DOCSTRING(GlobalState_GetChunksDecompressed));
GlobalState_.def("getBytesDownloaded" , static_cast<uint64_t(GlobalState::*)(OpenOptions::ConnectionType)>(&GlobalState::GetBytesDownloaded), py::arg("connectionType").none(false), OPENVDS_DOCSTRING(GlobalState_GetBytesDownloaded));
GlobalState_.def("getChunksDownloaded" , static_cast<uint64_t(GlobalState::*)(OpenOptions::ConnectionType)>(&GlobalState::GetChunksDownloaded), py::arg("connectionType").none(false), OPENVDS_DOCSTRING(GlobalState_GetChunksDownloaded));
GlobalState_.def("getBytesDecompressed" , static_cast<uint64_t(GlobalState::*)(OpenOptions::ConnectionType)>(&GlobalState::GetBytesDecompressed), py::arg("connectionType").none(false), OPENVDS_DOCSTRING(GlobalState_GetBytesDecompressed));
GlobalState_.def("getChunksDecompressed" , static_cast<uint64_t(GlobalState::*)(OpenOptions::ConnectionType)>(&GlobalState::GetChunksDecompressed), py::arg("connectionType").none(false), OPENVDS_DOCSTRING(GlobalState_GetChunksDecompressed));
//AUTOGEN-END
}
This diff is collapsed.
This diff is collapsed.
......@@ -46,7 +46,7 @@ PyMetadataKey::initModule(py::module& m)
MetadataKey_(m,"MetadataKey", OPENVDS_DOCSTRING(MetadataKey));
MetadataKey_.def(py::init< >(), OPENVDS_DOCSTRING(MetadataKey_MetadataKey));
MetadataKey_.def(py::init<native::MetadataType, const char *, const char *>(), py::arg("type"), py::arg("category"), py::arg("name"), OPENVDS_DOCSTRING(MetadataKey_MetadataKey_2));
MetadataKey_.def(py::init<native::MetadataType, const char *, const char *>(), py::arg("type").none(false), py::arg("category").none(false), py::arg("name").none(false), OPENVDS_DOCSTRING(MetadataKey_MetadataKey_2));
MetadataKey_.def("getType" , static_cast<native::MetadataType(MetadataKey::*)() const>(&MetadataKey::GetType), OPENVDS_DOCSTRING(MetadataKey_GetType));
MetadataKey_.def_property_readonly("type", &MetadataKey::GetType, OPENVDS_DOCSTRING(MetadataKey_GetType));
MetadataKey_.def("getCategory" , static_cast<const char *(MetadataKey::*)() const>(&MetadataKey::GetCategory), OPENVDS_DOCSTRING(MetadataKey_GetCategory));
......@@ -60,7 +60,7 @@ PyMetadataKey::initModule(py::module& m)
py::class_<MetadataKeyRange, std::unique_ptr<MetadataKeyRange>>
MetadataKeyRange_(m,"MetadataKeyRange", OPENVDS_DOCSTRING(MetadataKeyRange));
MetadataKeyRange_.def(py::init<native::MetadataKeyRange::const_iterator, native::MetadataKeyRange::const_iterator>(), py::arg("begin"), py::arg("end"), OPENVDS_DOCSTRING(MetadataKeyRange_MetadataKeyRange));
MetadataKeyRange_.def(py::init<native::MetadataKeyRange::const_iterator, native::MetadataKeyRange::const_iterator>(), py::arg("begin").none(false), py::arg("end").none(false), OPENVDS_DOCSTRING(MetadataKeyRange_MetadataKeyRange));
MetadataKeyRange_.def("begin" , static_cast<native::MetadataKeyRange::const_iterator(MetadataKeyRange::*)() const>(&MetadataKeyRange::begin), OPENVDS_DOCSTRING(MetadataKeyRange_begin));
MetadataKeyRange_.def("end" , static_cast<native::MetadataKeyRange::const_iterator(MetadataKeyRange::*)() const>(&MetadataKeyRange::end), OPENVDS_DOCSTRING(MetadataKeyRange_end));
......
......@@ -93,7 +93,7 @@ PyVolumeData::initModule(py::module& m)
CompressionInfo_(m,"CompressionInfo", OPENVDS_DOCSTRING(CompressionInfo));
CompressionInfo_.def(py::init< >(), OPENVDS_DOCSTRING(CompressionInfo_CompressionInfo));
CompressionInfo_.def(py::init<native::CompressionMethod, int>(), py::arg("compressionMethod"), py::arg("adaptiveLevel"), OPENVDS_DOCSTRING(CompressionInfo_CompressionInfo_2));
CompressionInfo_.def(py::init<native::CompressionMethod, int>(), py::arg("compressionMethod").none(false), py::arg("adaptiveLevel").none(false), OPENVDS_DOCSTRING(CompressionInfo_CompressionInfo_2));
CompressionInfo_.def("getCompressionMethod" , static_cast<native::CompressionMethod(CompressionInfo::*)() const>(&CompressionInfo::GetCompressionMethod), OPENVDS_DOCSTRING(CompressionInfo_GetCompressionMethod));
CompressionInfo_.def_property_readonly("compressionMethod", &CompressionInfo::GetCompressionMethod, OPENVDS_DOCSTRING(CompressionInfo_GetCompressionMethod));
CompressionInfo_.def("getAdaptiveLevel" , static_cast<int(CompressionInfo::*)() const>(&CompressionInfo::GetAdaptiveLevel), OPENVDS_DOCSTRING(CompressionInfo_GetAdaptiveLevel));
......@@ -110,7 +110,7 @@ PyVolumeData::initModule(py::module& m)
Dimensionality_.value("Dimensionality_6" , Dimensionality::Dimensionality_6 , OPENVDS_DOCSTRING(Dimensionality_Dimensionality_6));
Dimensionality_.value("Dimensionality_Max" , Dimensionality::Dimensionality_Max , OPENVDS_DOCSTRING(Dimensionality_Dimensionality_Max));
m.def("getLODSize" , static_cast<int(*)(int, int, int, bool)>(&GetLODSize), py::arg("voxelMin"), py::arg("voxelMax"), py::arg("lod"), py::arg("includePartialUpperVoxel"), OPENVDS_DOCSTRING(GetLODSize));
m.def("getLODSize" , static_cast<int(*)(int, int, int, bool)>(&GetLODSize), py::arg("voxelMin").none(false), py::arg("voxelMax").none(false), py::arg("lod").none(false), py::arg("includePartialUpperVoxel").none(false), OPENVDS_DOCSTRING(GetLODSize));
//AUTOGEN-END
}
This diff is collapsed.
......@@ -28,7 +28,7 @@ PyVolumeDataAxisDescriptor::initModule(py::module& m)
VolumeDataAxisDescriptor_(m,"VolumeDataAxisDescriptor", OPENVDS_DOCSTRING(VolumeDataAxisDescriptor));
VolumeDataAxisDescriptor_.def(py::init< >(), OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_VolumeDataAxisDescriptor));
VolumeDataAxisDescriptor_.def(py::init<int, const char *, const char *, float, float>(), py::arg("numSamples"), py::arg("name"), py::arg("unit"), py::arg("coordinateMin"), py::arg("coordinateMax"), OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_VolumeDataAxisDescriptor_2));
VolumeDataAxisDescriptor_.def(py::init<int, const char *, const char *, float, float>(), py::arg("numSamples").none(false), py::arg("name").none(false), py::arg("unit").none(false), py::arg("coordinateMin").none(false), py::arg("coordinateMax").none(false), OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_VolumeDataAxisDescriptor_2));
VolumeDataAxisDescriptor_.def("getNumSamples" , static_cast<int(VolumeDataAxisDescriptor::*)() const>(&VolumeDataAxisDescriptor::GetNumSamples), OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_GetNumSamples));
VolumeDataAxisDescriptor_.def_property_readonly("numSamples", &VolumeDataAxisDescriptor::GetNumSamples, OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_GetNumSamples));
VolumeDataAxisDescriptor_.def("getName" , static_cast<const char *(VolumeDataAxisDescriptor::*)() const>(&VolumeDataAxisDescriptor::GetName), OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_GetName));
......@@ -41,9 +41,9 @@ PyVolumeDataAxisDescriptor::initModule(py::module& m)
VolumeDataAxisDescriptor_.def_property_readonly("coordinateMax", &VolumeDataAxisDescriptor::GetCoordinateMax, OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_GetCoordinateMax));
VolumeDataAxisDescriptor_.def("getCoordinateStep" , static_cast<float(VolumeDataAxisDescriptor::*)() const>(&VolumeDataAxisDescriptor::GetCoordinateStep), OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_GetCoordinateStep));
VolumeDataAxisDescriptor_.def_property_readonly("coordinateStep", &VolumeDataAxisDescriptor::GetCoordinateStep, OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_GetCoordinateStep));
VolumeDataAxisDescriptor_.def("sampleIndexToCoordinate" , static_cast<float(VolumeDataAxisDescriptor::*)(int)>(&VolumeDataAxisDescriptor::SampleIndexToCoordinate), py::arg("sampleIndex"), OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_SampleIndexToCoordinate));
VolumeDataAxisDescriptor_.def("coordinateToSampleIndex" , static_cast<int(VolumeDataAxisDescriptor::*)(float)>(&VolumeDataAxisDescriptor::CoordinateToSampleIndex), py::arg("coordinate"), OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_CoordinateToSampleIndex));
VolumeDataAxisDescriptor_.def("coordinateToSamplePosition" , static_cast<float(VolumeDataAxisDescriptor::*)(float)>(&VolumeDataAxisDescriptor::CoordinateToSamplePosition), py::arg("coordinate"), OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_CoordinateToSamplePosition));
VolumeDataAxisDescriptor_.def("sampleIndexToCoordinate" , static_cast<float(VolumeDataAxisDescriptor::*)(int)>(&VolumeDataAxisDescriptor::SampleIndexToCoordinate), py::arg("sampleIndex").none(false), OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_SampleIndexToCoordinate));
VolumeDataAxisDescriptor_.def("coordinateToSampleIndex" , static_cast<int(VolumeDataAxisDescriptor::*)(float)>(&VolumeDataAxisDescriptor::CoordinateToSampleIndex), py::arg("coordinate").none(false), OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_CoordinateToSampleIndex));
VolumeDataAxisDescriptor_.def("coordinateToSamplePosition" , static_cast<float(VolumeDataAxisDescriptor::*)(float)>(&VolumeDataAxisDescriptor::CoordinateToSamplePosition), py::arg("coordinate").none(false), OPENVDS_DOCSTRING(VolumeDataAxisDescriptor_CoordinateToSamplePosition));
//AUTOGEN-END
}
......
......@@ -28,14 +28,14 @@ PyVolumeDataChannelDescriptor::initModule(py::module& m)
VolumeDataChannelDescriptor_(m,"VolumeDataChannelDescriptor", OPENVDS_DOCSTRING(VolumeDataChannelDescriptor));
VolumeDataChannelDescriptor_.def(py::init< >(), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float>(), py::arg("format"), py::arg("components"), py::arg("pName"), py::arg("pUnit"), py::arg("valueRangeMin"), py::arg("valueRangeMax"), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_2));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, native::VolumeDataMapping>(), py::arg("format"), py::arg("components"), py::arg("pName"), py::arg("pUnit"), py::arg("valueRangeMin"), py::arg("valueRangeMax"), py::arg("mapping"), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_3));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, VolumeDataChannelDescriptor::Flags>(), py::arg("format"), py::arg("components"), py::arg("pName"), py::arg("pUnit"), py::arg("valueRangeMin"), py::arg("valueRangeMax"), py::arg("flags"), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_4));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, native::VolumeDataMapping, VolumeDataChannelDescriptor::Flags>(), py::arg("format"), py::arg("components"), py::arg("pName"), py::arg("pUnit"), py::arg("valueRangeMin"), py::arg("valueRangeMax"), py::arg("mapping"), py::arg("flags"), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_5));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, native::VolumeDataMapping, int, VolumeDataChannelDescriptor::Flags, float, float>(), py::arg("format"), py::arg("components"), py::arg("pName"), py::arg("pUnit"), py::arg("valueRangeMin"), py::arg("valueRangeMax"), py::arg("mapping"), py::arg("mappedValueCount"), py::arg("flags"), py::arg("integerScale"), py::arg("integerOffset"), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_6));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, float>(), py::arg("format"), py::arg("components"), py::arg("pName"), py::arg("pUnit"), py::arg("valueRangeMin"), py::arg("valueRangeMax"), py::arg("noValue"), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_7));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, float, native::VolumeDataMapping, VolumeDataChannelDescriptor::Flags>(), py::arg("format"), py::arg("components"), py::arg("pName"), py::arg("pUnit"), py::arg("valueRangeMin"), py::arg("valueRangeMax"), py::arg("noValue"), py::arg("mapping"), py::arg("flags"), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_8));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, native::VolumeDataMapping, int, VolumeDataChannelDescriptor::Flags, float, float, float>(), py::arg("format"), py::arg("components"), py::arg("name"), py::arg("unit"), py::arg("valueRangeMin"), py::arg("valueRangeMax"), py::arg("mapping"), py::arg("mappedValueCount"), py::arg("flags"), py::arg("noValue"), py::arg("integerScale"), py::arg("integerOffset"), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_9));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float>(), py::arg("format").none(false), py::arg("components").none(false), py::arg("pName").none(false), py::arg("pUnit").none(false), py::arg("valueRangeMin").none(false), py::arg("valueRangeMax").none(false), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_2));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, native::VolumeDataMapping>(), py::arg("format").none(false), py::arg("components").none(false), py::arg("pName").none(false), py::arg("pUnit").none(false), py::arg("valueRangeMin").none(false), py::arg("valueRangeMax").none(false), py::arg("mapping").none(false), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_3));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, VolumeDataChannelDescriptor::Flags>(), py::arg("format").none(false), py::arg("components").none(false), py::arg("pName").none(false), py::arg("pUnit").none(false), py::arg("valueRangeMin").none(false), py::arg("valueRangeMax").none(false), py::arg("flags").none(false), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_4));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, native::VolumeDataMapping, VolumeDataChannelDescriptor::Flags>(), py::arg("format").none(false), py::arg("components").none(false), py::arg("pName").none(false), py::arg("pUnit").none(false), py::arg("valueRangeMin").none(false), py::arg("valueRangeMax").none(false), py::arg("mapping").none(false), py::arg("flags").none(false), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_5));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, native::VolumeDataMapping, int, VolumeDataChannelDescriptor::Flags, float, float>(), py::arg("format").none(false), py::arg("components").none(false), py::arg("pName").none(false), py::arg("pUnit").none(false), py::arg("valueRangeMin").none(false), py::arg("valueRangeMax").none(false), py::arg("mapping").none(false), py::arg("mappedValueCount").none(false), py::arg("flags").none(false), py::arg("integerScale").none(false), py::arg("integerOffset").none(false), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_6));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, float>(), py::arg("format").none(false), py::arg("components").none(false), py::arg("pName").none(false), py::arg("pUnit").none(false), py::arg("valueRangeMin").none(false), py::arg("valueRangeMax").none(false), py::arg("noValue").none(false), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_7));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, float, native::VolumeDataMapping, VolumeDataChannelDescriptor::Flags>(), py::arg("format").none(false), py::arg("components").none(false), py::arg("pName").none(false), py::arg("pUnit").none(false), py::arg("valueRangeMin").none(false), py::arg("valueRangeMax").none(false), py::arg("noValue").none(false), py::arg("mapping").none(false), py::arg("flags").none(false), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_8));
VolumeDataChannelDescriptor_.def(py::init<native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, native::VolumeDataMapping, int, VolumeDataChannelDescriptor::Flags, float, float, float>(), py::arg("format").none(false), py::arg("components").none(false), py::arg("name").none(false), py::arg("unit").none(false), py::arg("valueRangeMin").none(false), py::arg("valueRangeMax").none(false), py::arg("mapping").none(false), py::arg("mappedValueCount").none(false), py::arg("flags").none(false), py::arg("noValue").none(false), py::arg("integerScale").none(false), py::arg("integerOffset").none(false), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_VolumeDataChannelDescriptor_9));
VolumeDataChannelDescriptor_.def("getFormat" , static_cast<native::VolumeDataChannelDescriptor::Format(VolumeDataChannelDescriptor::*)() const>(&VolumeDataChannelDescriptor::GetFormat), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_GetFormat));
VolumeDataChannelDescriptor_.def_property_readonly("format", &VolumeDataChannelDescriptor::GetFormat, OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_GetFormat));
VolumeDataChannelDescriptor_.def("getComponents" , static_cast<native::VolumeDataChannelDescriptor::Components(VolumeDataChannelDescriptor::*)() const>(&VolumeDataChannelDescriptor::GetComponents), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_GetComponents));
......@@ -70,8 +70,8 @@ PyVolumeDataChannelDescriptor::initModule(py::module& m)
VolumeDataChannelDescriptor_.def_property_readonly("integerScale", &VolumeDataChannelDescriptor::GetIntegerScale, OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_GetIntegerScale));
VolumeDataChannelDescriptor_.def("getIntegerOffset" , static_cast<float(VolumeDataChannelDescriptor::*)() const>(&VolumeDataChannelDescriptor::GetIntegerOffset), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_GetIntegerOffset));
VolumeDataChannelDescriptor_.def_property_readonly("integerOffset", &VolumeDataChannelDescriptor::GetIntegerOffset, OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_GetIntegerOffset));
VolumeDataChannelDescriptor_.def_static("traceMappedVolumeDataChannelDescriptor", static_cast<native::VolumeDataChannelDescriptor(*)(native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, int, VolumeDataChannelDescriptor::Flags)>(&VolumeDataChannelDescriptor::TraceMappedVolumeDataChannelDescriptor), py::arg("format"), py::arg("components"), py::arg("pName"), py::arg("pUnit"), py::arg("valueRangeMin"), py::arg("valueRangeMax"), py::arg("mappedValueCount"), py::arg("flags"), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_TraceMappedVolumeDataChannelDescriptor));
VolumeDataChannelDescriptor_.def_static("traceMappedVolumeDataChannelDescriptor", static_cast<native::VolumeDataChannelDescriptor(*)(native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, int, VolumeDataChannelDescriptor::Flags, float)>(&VolumeDataChannelDescriptor::TraceMappedVolumeDataChannelDescriptor), py::arg("format"), py::arg("components"), py::arg("pName"), py::arg("pUnit"), py::arg("valueRangeMin"), py::arg("valueRangeMax"), py::arg("mappedValueCount"), py::arg("flags"), py::arg("noValue"), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_TraceMappedVolumeDataChannelDescriptor_2));
VolumeDataChannelDescriptor_.def_static("traceMappedVolumeDataChannelDescriptor", static_cast<native::VolumeDataChannelDescriptor(*)(native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, int, VolumeDataChannelDescriptor::Flags)>(&VolumeDataChannelDescriptor::TraceMappedVolumeDataChannelDescriptor), py::arg("format").none(false), py::arg("components").none(false), py::arg("pName").none(false), py::arg("pUnit").none(false), py::arg("valueRangeMin").none(false), py::arg("valueRangeMax").none(false), py::arg("mappedValueCount").none(false), py::arg("flags").none(false), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_TraceMappedVolumeDataChannelDescriptor));
VolumeDataChannelDescriptor_.def_static("traceMappedVolumeDataChannelDescriptor", static_cast<native::VolumeDataChannelDescriptor(*)(native::VolumeDataChannelDescriptor::Format, native::VolumeDataChannelDescriptor::Components, const char *, const char *, float, float, int, VolumeDataChannelDescriptor::Flags, float)>(&VolumeDataChannelDescriptor::TraceMappedVolumeDataChannelDescriptor), py::arg("format").none(false), py::arg("components").none(false), py::arg("pName").none(false), py::arg("pUnit").none(false), py::arg("valueRangeMin").none(false), py::arg("valueRangeMax").none(false), py::arg("mappedValueCount").none(false), py::arg("flags").none(false), py::arg("noValue").none(false), OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_TraceMappedVolumeDataChannelDescriptor_2));
py::enum_<VolumeDataChannelDescriptor::Flags>
VolumeDataChannelDescriptor_Flags_(VolumeDataChannelDescriptor_,"Flags", OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_Flags));
......@@ -101,7 +101,7 @@ PyVolumeDataChannelDescriptor::initModule(py::module& m)
VolumeDataChannelDescriptor_Components_.value("Components_2" , VolumeDataChannelDescriptor::Components::Components_2, OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_Components_Components_2));
VolumeDataChannelDescriptor_Components_.value("Components_4" , VolumeDataChannelDescriptor::Components::Components_4, OPENVDS_DOCSTRING(VolumeDataChannelDescriptor_Components_Components_4));
m.def("operator_bor" , static_cast<VolumeDataChannelDescriptor::Flags(*)(VolumeDataChannelDescriptor::Flags, VolumeDataChannelDescriptor::Flags)>(&operator|), py::arg("lhs"), py::arg("rhs"), OPENVDS_DOCSTRING(operator_bor));
m.def("operator_bor" , static_cast<VolumeDataChannelDescriptor::Flags(*)(VolumeDataChannelDescriptor::Flags, VolumeDataChannelDescriptor::Flags)>(&operator|), py::arg("lhs").none(false), py::arg("rhs").none(false), OPENVDS_DOCSTRING(operator_bor));
//AUTOGEN-END
}
......@@ -33,32 +33,32 @@ PyVolumeDataLayout::initModule(py::module& m)
VolumeDataLayout_.def_property_readonly("dimensionality", &VolumeDataLayout::GetDimensionality, OPENVDS_DOCSTRING(VolumeDataLayout_GetDimensionality));
VolumeDataLayout_.def("getChannelCount" , static_cast<int(VolumeDataLayout::*)() const>(&VolumeDataLayout::GetChannelCount), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelCount));
VolumeDataLayout_.def_property_readonly("channelCount", &VolumeDataLayout::GetChannelCount, OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelCount));
VolumeDataLayout_.def("isChannelAvailable" , static_cast<bool(VolumeDataLayout::*)(const char *) const>(&VolumeDataLayout::IsChannelAvailable), py::arg("channelName"), OPENVDS_DOCSTRING(VolumeDataLayout_IsChannelAvailable));
VolumeDataLayout_.def("getChannelIndex" , static_cast<int(VolumeDataLayout::*)(const char *) const>(&VolumeDataLayout::GetChannelIndex), py::arg("channelName"), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelIndex));
VolumeDataLayout_.def("isChannelAvailable" , static_cast<bool(VolumeDataLayout::*)(const char *) const>(&VolumeDataLayout::IsChannelAvailable), py::arg("channelName").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_IsChannelAvailable));
VolumeDataLayout_.def("getChannelIndex" , static_cast<int(VolumeDataLayout::*)(const char *) const>(&VolumeDataLayout::GetChannelIndex), py::arg("channelName").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelIndex));
VolumeDataLayout_.def("getLayoutDescriptor" , static_cast<native::VolumeDataLayoutDescriptor(VolumeDataLayout::*)() const>(&VolumeDataLayout::GetLayoutDescriptor), OPENVDS_DOCSTRING(VolumeDataLayout_GetLayoutDescriptor));
VolumeDataLayout_.def_property_readonly("layoutDescriptor", &VolumeDataLayout::GetLayoutDescriptor, OPENVDS_DOCSTRING(VolumeDataLayout_GetLayoutDescriptor));
VolumeDataLayout_.def("getChannelDescriptor" , static_cast<native::VolumeDataChannelDescriptor(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelDescriptor), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelDescriptor));
VolumeDataLayout_.def("getAxisDescriptor" , static_cast<native::VolumeDataAxisDescriptor(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetAxisDescriptor), py::arg("dimension"), OPENVDS_DOCSTRING(VolumeDataLayout_GetAxisDescriptor));
VolumeDataLayout_.def("getChannelFormat" , static_cast<VolumeDataChannelDescriptor::Format(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelFormat), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelFormat));
VolumeDataLayout_.def("getChannelComponents" , static_cast<VolumeDataChannelDescriptor::Components(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelComponents), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelComponents));
VolumeDataLayout_.def("getChannelName" , static_cast<const char *(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelName), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelName));
VolumeDataLayout_.def("getChannelUnit" , static_cast<const char *(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelUnit), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelUnit));
VolumeDataLayout_.def("getChannelValueRangeMin" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelValueRangeMin), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelValueRangeMin));
VolumeDataLayout_.def("getChannelValueRangeMax" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelValueRangeMax), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelValueRangeMax));
VolumeDataLayout_.def("isChannelDiscrete" , static_cast<bool(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::IsChannelDiscrete), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_IsChannelDiscrete));
VolumeDataLayout_.def("isChannelRenderable" , static_cast<bool(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::IsChannelRenderable), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_IsChannelRenderable));
VolumeDataLayout_.def("isChannelAllowingLossyCompression", static_cast<bool(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::IsChannelAllowingLossyCompression), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_IsChannelAllowingLossyCompression));
VolumeDataLayout_.def("isChannelUseZipForLosslessCompression", static_cast<bool(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::IsChannelUseZipForLosslessCompression), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_IsChannelUseZipForLosslessCompression));
VolumeDataLayout_.def("getChannelMapping" , static_cast<native::VolumeDataMapping(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelMapping), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelMapping));
VolumeDataLayout_.def("getDimensionNumSamples" , static_cast<int(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetDimensionNumSamples), py::arg("dimension"), OPENVDS_DOCSTRING(VolumeDataLayout_GetDimensionNumSamples));
VolumeDataLayout_.def("getDimensionName" , static_cast<const char *(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetDimensionName), py::arg("dimension"), OPENVDS_DOCSTRING(VolumeDataLayout_GetDimensionName));
VolumeDataLayout_.def("getDimensionUnit" , static_cast<const char *(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetDimensionUnit), py::arg("dimension"), OPENVDS_DOCSTRING(VolumeDataLayout_GetDimensionUnit));
VolumeDataLayout_.def("getDimensionMin" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetDimensionMin), py::arg("dimension"), OPENVDS_DOCSTRING(VolumeDataLayout_GetDimensionMin));
VolumeDataLayout_.def("getDimensionMax" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetDimensionMax), py::arg("dimension"), OPENVDS_DOCSTRING(VolumeDataLayout_GetDimensionMax));
VolumeDataLayout_.def("isChannelUseNoValue" , static_cast<bool(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::IsChannelUseNoValue), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_IsChannelUseNoValue));
VolumeDataLayout_.def("getChannelNoValue" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelNoValue), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelNoValue));
VolumeDataLayout_.def("getChannelIntegerScale" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelIntegerScale), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelIntegerScale));
VolumeDataLayout_.def("getChannelIntegerOffset" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelIntegerOffset), py::arg("channel"), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelIntegerOffset));
VolumeDataLayout_.def("getChannelDescriptor" , static_cast<native::VolumeDataChannelDescriptor(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelDescriptor), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelDescriptor));
VolumeDataLayout_.def("getAxisDescriptor" , static_cast<native::VolumeDataAxisDescriptor(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetAxisDescriptor), py::arg("dimension").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetAxisDescriptor));
VolumeDataLayout_.def("getChannelFormat" , static_cast<VolumeDataChannelDescriptor::Format(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelFormat), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelFormat));
VolumeDataLayout_.def("getChannelComponents" , static_cast<VolumeDataChannelDescriptor::Components(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelComponents), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelComponents));
VolumeDataLayout_.def("getChannelName" , static_cast<const char *(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelName), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelName));
VolumeDataLayout_.def("getChannelUnit" , static_cast<const char *(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelUnit), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelUnit));
VolumeDataLayout_.def("getChannelValueRangeMin" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelValueRangeMin), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelValueRangeMin));
VolumeDataLayout_.def("getChannelValueRangeMax" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelValueRangeMax), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelValueRangeMax));
VolumeDataLayout_.def("isChannelDiscrete" , static_cast<bool(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::IsChannelDiscrete), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_IsChannelDiscrete));
VolumeDataLayout_.def("isChannelRenderable" , static_cast<bool(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::IsChannelRenderable), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_IsChannelRenderable));
VolumeDataLayout_.def("isChannelAllowingLossyCompression", static_cast<bool(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::IsChannelAllowingLossyCompression), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_IsChannelAllowingLossyCompression));
VolumeDataLayout_.def("isChannelUseZipForLosslessCompression", static_cast<bool(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::IsChannelUseZipForLosslessCompression), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_IsChannelUseZipForLosslessCompression));
VolumeDataLayout_.def("getChannelMapping" , static_cast<native::VolumeDataMapping(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelMapping), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelMapping));
VolumeDataLayout_.def("getDimensionNumSamples" , static_cast<int(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetDimensionNumSamples), py::arg("dimension").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetDimensionNumSamples));
VolumeDataLayout_.def("getDimensionName" , static_cast<const char *(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetDimensionName), py::arg("dimension").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetDimensionName));
VolumeDataLayout_.def("getDimensionUnit" , static_cast<const char *(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetDimensionUnit), py::arg("dimension").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetDimensionUnit));
VolumeDataLayout_.def("getDimensionMin" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetDimensionMin), py::arg("dimension").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetDimensionMin));
VolumeDataLayout_.def("getDimensionMax" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetDimensionMax), py::arg("dimension").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetDimensionMax));
VolumeDataLayout_.def("isChannelUseNoValue" , static_cast<bool(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::IsChannelUseNoValue), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_IsChannelUseNoValue));
VolumeDataLayout_.def("getChannelNoValue" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelNoValue), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelNoValue));
VolumeDataLayout_.def("getChannelIntegerScale" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelIntegerScale), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelIntegerScale));
VolumeDataLayout_.def("getChannelIntegerOffset" , static_cast<float(VolumeDataLayout::*)(int) const>(&VolumeDataLayout::GetChannelIntegerOffset), py::arg("channel").none(false), OPENVDS_DOCSTRING(VolumeDataLayout_GetChannelIntegerOffset));
//AUTOGEN-END
VolumeDataLayout_.def_property_readonly("numSamples" , [](VolumeDataLayout* self)
......
......@@ -28,7 +28,7 @@ PyVolumeDataLayoutDescriptor::initModule(py::module& m)
VolumeDataLayoutDescriptor_(m,"VolumeDataLayoutDescriptor", OPENVDS_DOCSTRING(VolumeDataLayoutDescriptor));
VolumeDataLayoutDescriptor_.def(py::init< >(), OPENVDS_DOCSTRING(VolumeDataLayoutDescriptor_VolumeDataLayoutDescriptor));
VolumeDataLayoutDescriptor_.def(py::init<native::VolumeDataLayoutDescriptor::BrickSize, int, int, int, native::VolumeDataLayoutDescriptor::LODLevels, native::VolumeDataLayoutDescriptor::Options, int>(), py::arg("brickSize"), py::arg("negativeMargin"), py::arg("positiveMargin"), py::arg("brickSize2DMultiplier"), py::arg("lodLevels"), py::arg("options"), py::arg("fullResolutionDimension"), OPENVDS_DOCSTRING(VolumeDataLayoutDescriptor_VolumeDataLayoutDescriptor_2));
VolumeDataLayoutDescriptor_.def(py::init<native::VolumeDataLayoutDescriptor::BrickSize, int, int, int, native::VolumeDataLayoutDescriptor::LODLevels, native::VolumeDataLayoutDescriptor::Options, int>(), py::arg("brickSize").none(false), py::arg("negativeMargin").none(false), py::arg("positiveMargin").none(false), py::arg("brickSize2DMultiplier").none(false), py::arg("lodLevels").none(false), py::arg("options").none(false), py::arg("fullResolutionDimension").none(false), OPENVDS_DOCSTRING(VolumeDataLayoutDescriptor_VolumeDataLayoutDescriptor_2));
VolumeDataLayoutDescriptor_.def("isValid" , static_cast<bool(VolumeDataLayoutDescriptor::*)() const>(&VolumeDataLayoutDescriptor::IsValid), OPENVDS_DOCSTRING(VolumeDataLayoutDescriptor_IsValid));
VolumeDataLayoutDescriptor_.def_property_readonly("valid", &VolumeDataLayoutDescriptor::IsValid, OPENVDS_DOCSTRING(VolumeDataLayoutDescriptor_IsValid));
VolumeDataLayoutDescriptor_.def("getBrickSize" , static_cast<native::VolumeDataLayoutDescriptor::BrickSize(VolumeDataLayoutDescriptor::*)() const>(&VolumeDataLayoutDescriptor::GetBrickSize), OPENVDS_DOCSTRING(VolumeDataLayoutDescriptor_GetBrickSize));
......@@ -83,7 +83,7 @@ PyVolumeDataLayoutDescriptor::initModule(py::module& m)
VolumeDataLayoutDescriptor_Options_.value("Options_Create2DLODs" , VolumeDataLayoutDescriptor::Options::Options_Create2DLODs, OPENVDS_DOCSTRING(VolumeDataLayoutDescriptor_Options_Options_Create2DLODs));
VolumeDataLayoutDescriptor_Options_.value("Options_ForceFullResolutionDimension", VolumeDataLayoutDescriptor::Options::Options_ForceFullResolutionDimension, OPENVDS_DOCSTRING(VolumeDataLayoutDescriptor_Options_Options_ForceFullResolutionDimension));
m.def("operator_bor" , static_cast<VolumeDataLayoutDescriptor::Options(*)(VolumeDataLayoutDescriptor::Options, VolumeDataLayoutDescriptor::Options)>(&operator|), py::arg("lhs"), py::arg("rhs"), OPENVDS_DOCSTRING(operator_bor));
m.def("operator_bor" , static_cast<VolumeDataLayoutDescriptor::Options(*)(VolumeDataLayoutDescriptor::Options, VolumeDataLayoutDescriptor::Options)>(&operator|), py::arg("lhs").none(false), py::arg("rhs").none(false), OPENVDS_DOCSTRING(operator_bor));
//AUTOGEN-END
}
......@@ -15,14 +15,19 @@ for f in sourcefiles:
print("Merging: {}".format(t), end=' ')
source_contents = ''
target_contents = ''
with open(f, "rb") as infile:
with open(f, 'rb') as infile:
source_contents = infile.read().decode().replace('\r', '')
with open(t, 'rb') as targetfile:
target_contents = targetfile.read().decode().replace('\r', '')
target_lines = target_contents.splitlines()
implemented = [l[l.index(':')+1:].strip() for l in target_lines if '// IMPLEMENTED :' in l]
source_lines = source_contents.splitlines()
unimplemented = [l for l in source_lines if not l.strip() in implemented]
source_lines = '\n'.join(unimplemented) + '\n' if unimplemented else ''
if merge_begin in target_contents and merge_end in target_contents:
prefix = target_contents[:target_contents.index(merge_begin)+len(merge_begin)+1]
suffix = target_contents[target_contents.index(merge_end):]
merged = prefix + source_contents + suffix
merged = prefix + source_lines + suffix
if merged == target_contents:
print("[unchanged]")
else:
......
......@@ -227,7 +227,7 @@ def get_argnames(node, all_):
if params:
for p in params:
typ, name = p
argnames += ', py::arg("{}")'.format(name)
argnames += ', py::arg("{}").none(false)'.format(name)
return argnames
def generate_constructor(node, all_, output, indent, parent_prefix, context):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment