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

Revisions outline #439

Merged
merged 15 commits into from
Mar 22, 2024
Merged

Revisions outline #439

merged 15 commits into from
Mar 22, 2024

Conversation

Gorkowski
Copy link
Collaborator

Fixes #438

Discussions and examples of how we could revise the code, base.

@Gorkowski Gorkowski self-assigned this Mar 9, 2024
@Gorkowski Gorkowski added this to the v0.1.0 milestone Mar 9, 2024
@Gorkowski Gorkowski requested a review from ngmahfouz March 9, 2024 22:40
Copy link

github-actions bot commented Mar 9, 2024

PR Preview Action v1.4.7
🚀 Deployed preview to https://uncscode.github.io/particula/pr-preview/pr-439/
on branch gh-pages at 2024-03-21 18:37 UTC

@Gorkowski
Copy link
Collaborator Author

@ngmahfouz Check out the examples on the docs, https://uncscode.github.io/particula/pr-preview/pr-439/documentation/base/gas.html

I think this structure/framework will be pretty flexible. I'm mainly trying to layout the interactions between each class/process. What are your thoughts? You want to discuss, before proceeding?

@ngmahfouz
Copy link
Collaborator

This started with "chat with gpt on how this could work" and then went bananas 😸

We will discuss tomorrow.

One quick comment after glancing over this: I think we might benefit from utilizing the __repr__ method somewhere in this rewrite.

particula/base/gas.py Outdated Show resolved Hide resolved
particula/base/gas.py Outdated Show resolved Hide resolved
particula/base/gas.py Outdated Show resolved Hide resolved
particula/base/gas.py Outdated Show resolved Hide resolved
@ngmahfouz
Copy link
Collaborator

I notice we have no more units around. Should we drop carrying units and do everything in the 7 SI base units or possibly the 29 (or so?) base and derived units?

@ngmahfouz
Copy link
Collaborator

@Gorkowski Sorry... I got distracted. Could we rename base to something like dev or exp or experimental or next or something like that to convey that it is the next planned structure? Other than that, all other items can be delayed until later. Sorry!

Copy link
Collaborator Author

@Gorkowski Gorkowski left a comment

Choose a reason for hiding this comment

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

yeah, I like next

@Gorkowski Gorkowski marked this pull request as ready for review March 21, 2024 18:12
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @Gorkowski - I've reviewed your changes and they look great!

General suggestions:

  • Consider consolidating related imports for improved readability.
  • Add TODO comments for future implementation plans to clarify the intention behind commented-out code.
  • Ensure all imports are utilized to maintain clean and efficient code.
  • Expand the test suite to cover edge cases and error handling scenarios for more robust code.
  • Verify dynamic behavior and method attachments in the Aerosol class after replacing Gas or Particle instances.
Here's what I looked at during the review
  • 🟡 General issues: 3 issues found
  • 🟢 Security: all looks good
  • 🟡 Testing: 4 issues found
  • 🟢 Complexity: all looks good
  • 🟢 Docstrings: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

particula/next/particle.py Outdated Show resolved Hide resolved
particula/next/particle.py Show resolved Hide resolved
particula/next/gas.py Outdated Show resolved Hide resolved
particula/next/tests/base_particle_test.py Show resolved Hide resolved
particula/next/tests/runnable_process_test.py Show resolved Hide resolved
particula/next/tests/aerosol_test.py Show resolved Hide resolved
particula/next/gas.py Show resolved Hide resolved
particula/next/particle.py Outdated Show resolved Hide resolved
particula/next/particle.py Outdated Show resolved Hide resolved
particula/next/tests/base_particle_test.py Show resolved Hide resolved
Gorkowski and others added 3 commits March 21, 2024 12:29
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
@Gorkowski Gorkowski added this pull request to the merge queue Mar 22, 2024
Merged via the queue into main with commit f5c1323 Mar 22, 2024
8 checks passed
@Gorkowski Gorkowski deleted the Gorkowski/issue438 branch March 22, 2024 00:06
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.

Discussion on patterns.
2 participants