Skip to content

Flatten a series of simple schedules#82

Merged
gonuke merged 2 commits intosvalinn:mainfrom
anu1217:mult_simple_scheds
Mar 25, 2026
Merged

Flatten a series of simple schedules#82
gonuke merged 2 commits intosvalinn:mainfrom
anu1217:mult_simple_scheds

Conversation

@anu1217
Copy link
Copy Markdown
Contributor

@anu1217 anu1217 commented Mar 4, 2026

Builds upon #78 to extend the flattening approximation to multiple simple schedules.

fixes #23

Copy link
Copy Markdown
Member

@gonuke gonuke left a comment

Choose a reason for hiding this comment

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

Looking for some consistency in return quantities across the set of functions are are developing...

all_sched_t_irr += sched_t_irr
all_sched_abt += sched_active_burn_time
tot_ff = all_sched_abt / all_sched_t_irr
return all_sched_t_irr, tot_ff
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Noting that you changed which quantities are being returned by the previous function... I think it makes sense to have all these function return a consistent pair of values, any two of:

  • total irradiation time
  • total burn time
  • flux factor

Since the third can always be inferred from any other two, it makes sense to allow users to have an assumption about which two it will be by being consistent across the various functions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changed flatten_simple_sched() to have it return irradiation time and flux factor as before.

Copy link
Copy Markdown
Member

@gonuke gonuke left a comment

Choose a reason for hiding this comment

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

I think this looks OK, but we should start thinking about data structures that may be more robust than parallel iterables that we hope don't get misaligned.

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.

Calculate characteristic flux and time for a sequence of simple schedules

2 participants