Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@santisoler
Copy link
Member

Summary

Move the __init__`` method in BaseSimulation` to the top of the class. This just improves readability and shouldn't change the behaviour of the class.

PR Checklist

  • If this is a work in progress PR, set as a Draft PR
  • Linted my code according to the style guides.
  • Added tests to verify changes to the code.
  • Added necessary documentation to any new functions/classes following the
    expect style.
  • Marked as ready for review (if this is was a draft PR), and converted
    to a Pull Request
  • Tagged @simpeg/simpeg-developers when ready for review.

Reference issue

What does this implement/fix?

Additional information

Move the `__init__`` method in `BaseSimulation` to the top of the class.
This just improves readability and shouldn't change the behaviour of the
class.
@santisoler santisoler requested a review from lheagy January 11, 2024 18:25
@codecov
Copy link

codecov bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5cb5d63) 82.30% compared to head (619b68f) 82.30%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1323   +/-   ##
=======================================
  Coverage   82.30%   82.30%           
=======================================
  Files         165      165           
  Lines       25244    25244           
=======================================
  Hits        20778    20778           
  Misses       4466     4466           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jcapriot jcapriot left a comment

Choose a reason for hiding this comment

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

lgtm

@santisoler
Copy link
Member Author

Style checks are failing on CI (not locally) because different versions of flake and its plugins are being installed in Azure. I'm fixing that in #330.

@santisoler santisoler merged commit 9ec8ee5 into main Jan 16, 2024
@santisoler santisoler deleted the move-init-base-simulation branch January 16, 2024 23:54
thibaut-kobold added a commit to KoBoldMetals/simpeg that referenced this pull request Jan 22, 2024
* main:
  Fix typo in error messages (simpeg#1324)
  Update test_regularization.py to test vector derivatives. Update AmplitudeSmoothnessFirstOrder in vector.py so that the call matches the derivative.
  Move `__init__` in `BaseSimulation` to the top of the class (simpeg#1323)
  Bump versions of flake8 and black and pin flake plugins (simpeg#1330)
  Update test_regularization.py to test vector derivatives. Update AmplitudeSmoothnessFirstOrder in vector.py so that the call matches the derivative.
  Update test_regularization.py to test vector derivatives. Update AmplitudeSmoothnessFirstOrder in vector.py so that the call matches the derivative.
  Add `weights_keys` method to `BaseRegularization` (simpeg#1320)
  Fix description of source_field in gravity survey (simpeg#1322)
  Documentation improvements for classes in Objective Function Pieces (simpeg#1292)

# Conflicts:
#	tests/base/regularizations/test_regularization.py
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.

3 participants