andreped / super-ml-pets

🐒 AI for Super Auto Pets
MIT License
31 stars 13 forks source link

Added Logging System. #38

Closed GoldExplosion closed 2 years ago

andreped commented 2 years ago

Oh, didn't see that you made a PR, @GoldExplosion. Great! I will look at this after work. However, from briefly looking at it. It looks great!

If you have time, you could work on the other issues we discussed, if you'd like. Just be sure to do it on a separate branch (sync'd with master).

codecov[bot] commented 2 years ago

Codecov Report

Base: 3.42% // Head: 3.14% // Decreases project coverage by -0.27% :warning:

Coverage data is based on head (bcfffa7) compared to base (062190a). Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #38 +/- ## ======================================== - Coverage 3.42% 3.14% -0.28% ======================================== Files 9 9 Lines 496 540 +44 ======================================== Hits 17 17 - Misses 479 523 +44 ``` | [Impacted Files](https://codecov.io/gh/andreped/super-ml-pets/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andr%C3%A9+Pedersen) | Coverage Ξ” | | |---|---|---| | [src/actions.py](https://codecov.io/gh/andreped/super-ml-pets/pull/38/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andr%C3%A9+Pedersen#diff-c3JjL2FjdGlvbnMucHk=) | `0.00% <0.00%> (ΓΈ)` | | | [src/deploy\_agent.py](https://codecov.io/gh/andreped/super-ml-pets/pull/38/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andr%C3%A9+Pedersen#diff-c3JjL2RlcGxveV9hZ2VudC5weQ==) | `0.00% <0.00%> (ΓΈ)` | | | [src/image\_detection.py](https://codecov.io/gh/andreped/super-ml-pets/pull/38/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andr%C3%A9+Pedersen#diff-c3JjL2ltYWdlX2RldGVjdGlvbi5weQ==) | `0.00% <ΓΈ> (ΓΈ)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andr%C3%A9+Pedersen). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andr%C3%A9+Pedersen)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

GoldExplosion commented 2 years ago

Ok got it, Thanks!

Just be sure to do it on a separate branch (sync'd with master)

Sorry to ask this beginner question but I'm not sure what this means. I made a separate branch on my fork but couldn't merge with the dev branch of your repo. I couldn't create a branch in the repo either. If you could tell me more detail on what exactly you want I will follow that. Thank you :)

andreped commented 2 years ago

Sorry to ask this beginner question but I'm not sure what this means. I made a separate branch on my fork but couldn't merge with the dev branch of your repo. I couldn't create a branch in the repo either. If you could tell me more detail on what exactly you want I will follow that. Thank you :)

Oh, so whenever you are contributing to a project, we work with forks. For each contribution you will have to make a pull request. When making edits, the most optimal way is to make a separate branch where you make the edits (different from master/main) and then you make a PR to merge the edits with the master (and not your master in the fork, but rather upstream - the main repo).

If you were to make edits in your master branch, or in a dev branch, you then make a PR. All is good. However, suddenly, you find that you want to make a new PR, on a different topic. But now, if you make commits to the same branch (as for the previous PR), the same commits will be made for both PRs. That is suboptimal.

Now, lets assume that you have already an existing branch dev where you made your first edits. If you now wish to make a new branch other-stuff, you have to be careful. If you do git checkout -b other-stuff from the dev branch, the same edits from dev will be carried over. As before, if you now make a PR from the new branch, you will have the same edits as before.

The best way of doing it is for each PR, have one or multiple branches where you work on. It is common to delete these after a PR, or when you find them redundant. Long living branches are rarely a good idea. However having a dev branch is quite common.

After you have done your edits in dev, go back to master by git checkout master, and then do git checkout -b other-stuff. That way, you will make edits from the original version. And the edits between the two branches won't overlap or have the same proposed edits (in a way). Note that when stuff have been merged (if I have accepted one of your PRs), you can syncronize (sync) your master branch (or any other branch really with upstream (my repo)) by simply clicking the sync fork button on github (under neath of clone button).

That way you are always up to date on the latest changes in upstream, and you can seemlessly contribute and hopefully avoid lots of merge conflicts and other fun stuff. Hope this was a little helpful. Please, just let me know if you have any other questions. Always happy to help :]

And great job on the PR! Will test this tomorrow. Quite long day at work today...

GoldExplosion commented 2 years ago

Sorry to ask this beginner question but I'm not sure what this means. I made a separate branch on my fork but couldn't merge with the dev branch of your repo. I couldn't create a branch in the repo either. If you could tell me more detail on what exactly you want I will follow that. Thank you :)

Oh, so whenever you are contributing to a project, we work with forks. For each contribution you will have to make a pull request. When making edits, the most optimal way is to make a separate branch where you make the edits (different from master/main) and then you make a PR to merge the edits with the master (and not your master in the fork, but rather upstream - the main repo).

If you were to make edits in your master branch, or in a dev branch, you then make a PR. All is good. However, suddenly, you find that you want to make a new PR, on a different topic. But now, if you make commits to the same branch (as for the previous PR), the same commits will be made for both PRs. That is suboptimal.

Now, lets assume that you have already an existing branch dev where you made your first edits. If you now wish to make a new branch other-stuff, you have to be careful. If you do git checkout -b other-stuff from the dev branch, the same edits from dev will be carried over. As before, if you now make a PR from the new branch, you will have the same edits as before.

The best way of doing it is for each PR, have one or multiple branches where you work on. It is common to delete these after a PR, or when you find them redundant. Long living branches are rarely a good idea. However having a dev branch is quite common.

After you have done your edits in dev, go back to master by git checkout master, and then do git checkout -b other-stuff. That way, you will make edits from the original version. And the edits between the two branches won't overlap or have the same proposed edits (in a way). Note that when stuff have been merged (if I have accepted one of your PRs), you can syncronize (sync) your master branch (or any other branch really with upstream (my repo)) by simply clicking the sync fork button on github (under neath of clone button).

That way you are always up to date on the latest changes in upstream, and you can seemlessly contribute and hopefully avoid lots of merge conflicts and other fun stuff. Hope this was a little helpful. Please, just let me know if you have any other questions. Always happy to help :]

And great job on the PR! Will test this tomorrow. Quite long day at work today...

Thank you for taking the time to reply. I understood perfectly. Very helpful!!. Have a nice day :)