Skip to content

Wrong Number of Slices and Times#45

Merged
lelaus merged 2 commits into
masterfrom
031_wrong_no_slices_times
Jun 10, 2025
Merged

Wrong Number of Slices and Times#45
lelaus merged 2 commits into
masterfrom
031_wrong_no_slices_times

Conversation

@dmanzione

Copy link
Copy Markdown
Collaborator

The init_PliReader() static method of the PliReader class has been updated in the way it extracts the number of slices from the .pli file. This is done by reading the ISLICE value as a string; however, previously, it was compared with an integer value, thus preventing to correctly identify the number of slices.
Now, the ISLICE value is transformed into an integer to check if "truthy" or not: this solves the highlighted issue.
In addition, by properly identifying the number of slices, also the problem on the missing time instants for the radially dependent quantities is solved; in fact, the extraction of these times from the .mac file is directly tied to the number of slices.

The 'init_PliReader()' static method of the 'PliReader' class has been updated in the way it extracts the number of slices from the .pli file. This is done by reading the 'ISLICE' value; depending on its value, the number of slices is calculated as 'M3'+1, if 'ISLICE' is 0, or as 'M3', if 'ISLICE' is 1, where the 'M3' value is found in the .pli file as well. The 'ISLICE' is read as a string; however, previously, it was compared with an integer value, thus preventing to correctly identify the number of slices. Now, the 'ISLICE' value is compared with a string, thus solving the identified issue. By properly identifying the number of slices, also the problem on the missing time instants for the radially dependent quantities is solved; in fact, the extraction of these times from the .mac file is directly tied to the number of slices.
@dmanzione dmanzione linked an issue Jun 10, 2025 that may be closed by this pull request
@dmanzione dmanzione changed the title Wrong Number of Slices Wrong Number of Slices and Times Jun 10, 2025
@lelaus lelaus merged commit 9294a99 into master Jun 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error with number of slice and plots

2 participants