Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug in export rules #325

Merged
merged 1 commit into from
Nov 14, 2024
Merged
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: 4 additions & 4 deletions core/PhysiCell_rules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2193,7 +2193,7 @@ void export_rules_csv_v1( std::string filename )
{ response = "decreases"; max_response = min_value; }
double half_max = pHRS->rules[k]->half_maxes[i];
double hill_power = pHRS->rules[k]->hill_powers[i];
bool use_for_dead = false;
bool use_for_dead = pHRS->rules[k]->applies_to_dead_cells[i];

// output the rule
fs << cell_type << "," << signal << "," << response << "," << behavior << "," // 0,1,2,3
Expand Down Expand Up @@ -2222,7 +2222,7 @@ void export_rules_csv_v3( std::string filename )
return;
}

std::cout << "Exporting rules to file " << filename << " (v2 format) ... " << std::endl;
std::cout << "Exporting rules to file " << filename << " (v3 format) ... " << std::endl;

for( int n=0; n < cell_definitions_by_index.size(); n++ )
{
Expand All @@ -2249,7 +2249,7 @@ void export_rules_csv_v3( std::string filename )
{ response = "decreases"; max_response = min_value; }
double half_max = pHRS->rules[k]->half_maxes[i];
double hill_power = pHRS->rules[k]->hill_powers[i];
bool use_for_dead = false;
bool use_for_dead = pHRS->rules[k]->applies_to_dead_cells[i];

// output the rule
fs << cell_type << "," << signal << "," << response << "," << behavior << "," // 0,1,2,3
Expand Down Expand Up @@ -2370,7 +2370,7 @@ void setup_cell_rules( void )

// save rules (v1)
std::string rules_file = PhysiCell_settings.folder + "/cell_rules.csv";
export_rules_csv_v1( rules_file );
export_rules_csv_v3( rules_file );


return;
Expand Down
Loading