Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting schedules is very time consuming #3

Open
louisleroy5 opened this issue May 10, 2019 · 3 comments
Open

Getting schedules is very time consuming #3

louisleroy5 opened this issue May 10, 2019 · 3 comments
Assignees

Comments

@louisleroy5
Copy link
Collaborator

In the trnsys.py file, we have several function to translate an IDF file to an input file for TRNBuild. From line 417 to line 436 (region Get schedules from IDF) we get the used schedules in the IDF file.
However, this action takes around 90% of the total time of all the procedures.
After investigation, it seems to be at line 429 where we use s.to_year_week_day() that the major part of the time is consumed.

@samuelduchesne
Copy link
Owner

@louisleroy5 is this still an issue, can you retest the speed using a profiler?

@louisleroy5
Copy link
Collaborator Author

@samuelduchesne it seems better. The function used to get the schedules takes relatively less time than before (around 2% instead of 90%). See screenshot of the profile table for more information please.
profile_table

@samuelduchesne
Copy link
Owner

Great!

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

No branches or pull requests

2 participants