Skip to content

Commit

Permalink
More logging for pyinstaller issue
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCzarnecki committed Nov 19, 2024
1 parent a3fb338 commit 2ab5e69
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/create_wce_objects.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "create_wce_objects.h"
#include <sstream>
#include <iostream>
#include "convert_optics_parser.h"
#include "optical_calcs.h"
#include "util.h"
Expand Down Expand Up @@ -1060,6 +1061,7 @@ namespace wincalc
double tilt,
window_standards::Optical_Standard const & standard)
{
std::cout << "get_igu" << std::endl;
std::vector<std::shared_ptr<Tarcog::ISO15099::CIGUSolidLayer>> tarcog_solid_layers;
auto ir_method = standard.methods.at("THERMAL IR");

Expand Down
11 changes: 11 additions & 0 deletions src/glazing_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,31 +96,42 @@ namespace wincalc

Tarcog::ISO15099::CIGU & Glazing_System::get_igu(double theta, double phi)
{
std::cout << "get_igu" << std::endl;
if(current_igu.has_value() && is_current_igu_calculated(theta, phi))
{
std::cout << "in current_igu.has_value() && is_current_igu_calculated(theta, phi)" << std::endl;
return current_igu.value();
}
else
{
std::cout << "in else" << std::endl;
current_igu = create_igu(product_data, gap_values, width, height, tilt, standard);
std::cout << "after create_igu" << std::endl;
if(!applied_loads.empty())
{
std::cout << "in !applied_loads.empty()" << std::endl;
current_igu.value().setAppliedLoad(applied_loads);
std::cout << "after current_igu.value().setAppliedLoad(applied_loads);" << std::endl;
}
return current_igu.value();
}
}

Tarcog::ISO15099::CSystem & Glazing_System::get_system(double theta, double phi)
{
std::cout << "get_system" << std::endl;
if(current_system.has_value() && is_current_igu_calculated(theta, phi))
{
std::cout << "current_system.has_value() && is_current_igu_calculated(theta, phi)" << std::endl;
return current_system.value();
}
else
{
std::cout << "in else" << std::endl;
auto & igu = get_igu(theta, phi);
std::cout << "after get_igu" << std::endl;
current_system = create_system(igu, environment);
std::cout << "after create_system" << std::endl;
last_theta = theta;
last_phi = phi;
return current_system.value();
Expand Down
3 changes: 3 additions & 0 deletions src/thermal_ir.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <iostream>
#include "thermal_ir.h"
#include "convert_optics_parser.h"
#include "create_wce_objects.h"
Expand All @@ -6,7 +7,9 @@ wincalc::ThermalIRResults
wincalc::calc_thermal_ir(window_standards::Optical_Standard const & standard,
Product_Data_Optical_Thermal const & product_data)
{
std::cout << "calc_thermal_ir" << std::endl;
auto method = standard.methods.at("THERMAL IR");
std::cout << "after auto method = standard.methods.at(THERMAL IR);" << std::endl;
auto bsdf = SingleLayerOptics::BSDFHemisphere::create(SingleLayerOptics::BSDFBasis::Full);

auto bsdf_layer = create_bsdf_layer(product_data.optical_data, method, 1, bsdf);
Expand Down

0 comments on commit 2ab5e69

Please sign in to comment.