Skip to content

Commit

Permalink
Remove openmode and add release notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
robbietuk committed Sep 12, 2024
1 parent 46ae070 commit 4399724
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions documentation/release_6.3.htm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ <h3>Known problems</h3>

<H2>What is new for developers (aside from what should be obvious from the above):</H2>

<h3>New functionality</h3>

<li>
<code>ProjDataInMemory</code> <code>read_from_file</code> method now returns a <code>ProjDataInMemory</code> object.
</li>

<h3>Changed functionality</h3>

Expand Down
4 changes: 2 additions & 2 deletions src/buildblock/ProjDataInMemory.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ ProjDataInMemory::ProjDataInMemory(const ProjDataInMemory& proj_data)
}

shared_ptr<ProjDataInMemory>
ProjDataInMemory::read_from_file(const std::string& filename, const std::ios::openmode openmode)
ProjDataInMemory::read_from_file(const std::string& filename)
{
return std::make_shared<ProjDataInMemory>(*ProjData::read_from_file(filename, openmode));
return std::make_shared<ProjDataInMemory>(*ProjData::read_from_file(filename));
}

float
Expand Down
2 changes: 1 addition & 1 deletion src/include/stir/ProjDataInMemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ProjDataInMemory : public ProjData
ProjDataInMemory(const ProjDataInMemory& proj_data);

//! A static member to get the projection data in memory from a file
static shared_ptr<ProjDataInMemory> read_from_file(const std::string& filename, std::ios::openmode open_mode = std::ios::in);
static shared_ptr<ProjDataInMemory> read_from_file(const std::string& filename);

Viewgram<float> get_viewgram(const int view_num,
const int segment_num,
Expand Down

0 comments on commit 4399724

Please sign in to comment.