Skip to content
Open
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
8 changes: 8 additions & 0 deletions modules/PhysiCell_pathology.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,14 @@ void setup_svg_substrate_colormap(std::vector<std::string> &colormap)
std::string map_name = PhysiCell_settings.svg_substrate_colormap;
int name_length = map_name.size();
bool is_reversed = false;
if (name_length < 2)
{
std::cout << "WARNING: colormap name " << map_name << " is too short. Using default 'YlOrRd' colormap." << std::endl
<< " Check your save//SVG//plot_substrate//colormap element in your configuration file." << std::endl;
map_name = "YlOrRd";
name_length = map_name.size();
PhysiCell_settings.svg_substrate_colormap = map_name;
}
if (map_name.substr(name_length-2,2)=="_r")
{
map_name = map_name.substr(0,name_length-2);
Expand Down
Loading