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
28 changes: 28 additions & 0 deletions MMCore/MMCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7309,6 +7309,34 @@ void CMMCore::saveSystemConfiguration(const char* fileName) throw (CMMError)
{
os << MM::g_CFGCommand_Property << ',' << MM::g_Keyword_CoreDevice << ',' << MM::g_Keyword_CoreFocus << ',' << focus->GetLabel() << '\n';
}

// save pixel size configurations
os << "# PixelSize settings" << endl;

vector<string> configs = getAvailablePixelSizeConfigs();
// normal group records
for (size_t j=0; j<configs.size(); j++)
{
Configuration c = getPixelSizeConfigData(configs[j].c_str());
for (size_t k=0; k<c.size(); k++)
{
PropertySetting s = c.getSetting(k);
os << MM::g_CFGCommand_ConfigPixelSize << ',' << configs[j]
<< ',' << s.getDeviceLabel() << ',' << s.getPropertyName() << ',' << s.getPropertyValue() << endl;
}

os << MM::g_CFGCommand_PixelSize_um << ',' << configs[j] << ',' << getPixelSizeUmByID(configs[j].c_str()) << endl;

std::vector<double> affine = getPixelSizeAffineByID(configs[j].c_str());
os << MM::g_CFGCommand_PixelSizeAffine << ',' << configs[j] << ',';
for (size_t i = 0; i < affine.size(); ++i) {
os << affine[i];
if (i < affine.size() - 1) {
os << ',';
}
}
os << endl;
Comment on lines +7330 to +7338
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the main remaining question. cc @marktsuchida

}
}

/**
Expand Down
Loading