Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ else() # Default to Debug settings
endif()
endif()

# MSVC: make __cplusplus report the actual standard (needed by csv-parser)
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
add_compile_options(/Zc:__cplusplus)
endif()

file(
GLOB
SOURCES
Expand Down
29 changes: 13 additions & 16 deletions src/dsf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import sys
import os

from dsf_cpp import (
__version__,
LogLevel,
get_log_level,
set_log_level,
log_to_file,
mobility,
mdt,
__version__ as __version__,
LogLevel as LogLevel,
get_log_level as get_log_level,
set_log_level as set_log_level,
log_to_file as log_to_file,
mobility as mobility,
mdt as mdt,
)

from .python.cartography import (
get_cartography,
graph_from_gdfs,
graph_to_gdfs,
create_manhattan_cartography,
to_folium_map,
from .cartography import (

Check warning

Code scanning / Prospector (reported by Codacy)

'.cartography.get_cartography' imported but unused (F401) Warning

'.cartography.get_cartography' imported but unused (F401)

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Import alias does not rename original package Warning

Import alias does not rename original package

Check warning

Code scanning / Prospector (reported by Codacy)

Import alias does not rename original package (useless-import-alias) Warning

Import alias does not rename original package (useless-import-alias)
get_cartography as get_cartography,
graph_from_gdfs as graph_from_gdfs,
graph_to_gdfs as graph_to_gdfs,
create_manhattan_cartography as create_manhattan_cartography,
to_folium_map as to_folium_map,
)
7 changes: 7 additions & 0 deletions src/dsf/cartography/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from .cartography import (

Check warning

Code scanning / Pylint (reported by Codacy)

Missing module docstring Warning

Missing module docstring

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Missing module docstring Warning

Missing module docstring

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Import alias does not rename original package Warning

Import alias does not rename original package

Check warning

Code scanning / Prospector (reported by Codacy)

Import alias does not rename original package (useless-import-alias) Warning

Import alias does not rename original package (useless-import-alias)

Check warning

Code scanning / Prospector (reported by Codacy)

'.cartography.get_cartography' imported but unused (F401) Warning

'.cartography.get_cartography' imported but unused (F401)
get_cartography as get_cartography,
graph_from_gdfs as graph_from_gdfs,
graph_to_gdfs as graph_to_gdfs,
create_manhattan_cartography as create_manhattan_cartography,
to_folium_map as to_folium_map,
)
File renamed without changes.
4 changes: 2 additions & 2 deletions src/dsf/dsf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include <spdlog/sinks/basic_file_sink.h>

static constexpr uint8_t DSF_VERSION_MAJOR = 5;
static constexpr uint8_t DSF_VERSION_MINOR = 0;
static constexpr uint8_t DSF_VERSION_PATCH = 3;
static constexpr uint8_t DSF_VERSION_MINOR = 1;
static constexpr uint8_t DSF_VERSION_PATCH = 0;

static auto const DSF_VERSION =
std::format("{}.{}.{}", DSF_VERSION_MAJOR, DSF_VERSION_MINOR, DSF_VERSION_PATCH);
Expand Down
2 changes: 1 addition & 1 deletion test/Test_cartography.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest
import networkx as nx
import folium
from dsf.python.cartography import (
from dsf.cartography import (
get_cartography,
graph_to_gdfs,
graph_from_gdfs,
Expand Down
Loading