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

Ensuring transform and log files are generated #62

Merged
merged 33 commits into from
Apr 16, 2024

Conversation

neuronflow
Copy link
Contributor

@neuronflow neuronflow commented Apr 4, 2024

this bugfix PR also introduces a functional wrapper for resampling

@neuronflow neuronflow linked an issue Apr 4, 2024 that may be closed by this pull request
@neuronflow neuronflow marked this pull request as draft April 4, 2024 08:50
@brainless-bot
Copy link
Contributor

brainless-bot bot commented Apr 4, 2024

🤖 Code Formatting Reminder

Hello there! 👋 It looks like the code in this pull request might benefit from some formatting improvements.
Fix the issues locally or use our auto format action by commenting /format on this PR!

Code style: black

@neuronflow
Copy link
Contributor Author

@sarthakpati I introduced a separate test, testing the transform function now.

@neuronflow
Copy link
Contributor Author

/format

@brainless-bot
Copy link
Contributor

brainless-bot bot commented Apr 4, 2024

🤖 I will now format your code with black. Check the status here.

@neuronflow neuronflow added bug Something isn't working enhancement New feature or request labels Apr 4, 2024
Signed-off-by: neuronflow <[email protected]>
@brainless-bot
Copy link
Contributor

brainless-bot bot commented Apr 4, 2024

🤖 Code Formatting Reminder

Hello there! 👋 It looks like the code in this pull request might benefit from some formatting improvements.
Fix the issues locally or use our auto format action by commenting /format on this PR!

Code style: black

Signed-off-by: neuronflow <[email protected]>
@neuronflow
Copy link
Contributor Author

/format

@neuronflow
Copy link
Contributor Author

@sarthakpati okay...the single tests pass but the combined test fails

@brainless-bot
Copy link
Contributor

brainless-bot bot commented Apr 4, 2024

🤖 I will now format your code with black. Check the status here.

@sarthakpati sarthakpati marked this pull request as ready for review April 5, 2024 17:46
@neuronflow neuronflow marked this pull request as draft April 6, 2024 18:45
@brainless-bot
Copy link
Contributor

brainless-bot bot commented Apr 8, 2024

🤖 Code Formatting Reminder

Hello there! 👋 It looks like the code in this pull request might benefit from some formatting improvements.
Fix the issues locally or use our auto format action by commenting /format on this PR!

Code style: black

Copy link
Collaborator

@MarcelRosier MarcelRosier left a comment

Choose a reason for hiding this comment

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

small comment, else lgtm

Copy link
Collaborator

Choose a reason for hiding this comment

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

should this file be part of the repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe we need a mat file for the transformation test. Is this the file that is used there?

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah yeah probably, checks out

log_file (str): The log file.
logger_type (str): The logger type.
"""
reload(logging)
Copy link
Collaborator

@MarcelRosier MarcelRosier Apr 15, 2024

Choose a reason for hiding this comment

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

this seems really weird. are you sure this is really needed?
Maybe compare with the logger used in aurora (here). However if it works reliably i guess its fine. Related SO issue => reloading could maybe lead to issues down the road? Removing custom loggers seems more sensible

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that also puzzled me :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't have a lot of experience with the logging library (I rarely use it in my usual code, since all console messages either get saved by the HPC or get pushed to files). Anyway, I am happy to use whatever solution you propose that works for @neuronflow.

@neuronflow neuronflow removed the request for review from IsraMekki0 April 15, 2024 14:45
@neuronflow neuronflow marked this pull request as ready for review April 15, 2024 14:45
@neuronflow
Copy link
Contributor Author

image
hmm on this ubuntu machine, it still creates two log files where two are empty? @MarcelRosier will have another look tmrw.

@sarthakpati
Copy link
Collaborator

Weird. 91fb002 should check for any empty log files and throw an exception.

@MarcelRosier
Copy link
Collaborator

MarcelRosier commented Apr 16, 2024

Rechecked and it works fine for me. Perhaps you had an older version installed that is being sued instead of the local repo that includes the changes? => Resolved in call, suer error (logs empty because target files already existed, will add a warning for that)
image

@MarcelRosier MarcelRosier self-requested a review April 16, 2024 08:58
@MarcelRosier
Copy link
Collaborator

rewrote the usage of the logging module and tests.
Please have a look and lmk what you think @neuronflow @sarthakpati

@sarthakpati
Copy link
Collaborator

I am fine with the changes.

However, who should review/merge the PR now that @MarcelRosier you have contributed to the code?

@neuronflow neuronflow removed the request for review from MarcelRosier April 16, 2024 21:07
@neuronflow
Copy link
Contributor Author

just checked, seems to work fine. Thanks @MarcelRosier :)

..Only small issue is if the trans files already exist ereg does not really warn..this might lead to unexpected behavior..we might open a feature request for this.

I will merge this now as both @sarthakpati and me approve the changes.

@neuronflow neuronflow merged commit 5133c97 into main Apr 16, 2024
6 checks passed
@neuronflow neuronflow deleted the 61-transform-resampling-does-not-work branch April 16, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
3 participants