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

Skip to content
Draft
Changes from 1 commit
Commits
Show all changes
453 commits
Select commit Hold shift + click to select a range
d4d0605
appease grumpy black
rocco8773 Feb 2, 2021
aeb5247
add atol=1e-7 to isclose in test_island_finding
rocco8773 Feb 2, 2021
2f4f997
add test for perfect linear and exponential
rocco8773 Feb 2, 2021
f2e4f43
appeas grumpy black
rocco8773 Feb 2, 2021
0ac26b9
Apply suggestions from code review
rocco8773 Feb 2, 2021
bae6520
phrasing
rocco8773 Feb 2, 2021
25e14e6
Apply suggestions from code review
rocco8773 Feb 2, 2021
51e2edf
Merge remote-tracking branch 'fork/ad-lang-vf' into ad-lang-vf
rocco8773 Feb 2, 2021
cea466c
add import of numbers
rocco8773 Feb 2, 2021
d20998a
move the "How it works" "section" to the numpydoc "Notes" section
rocco8773 Feb 2, 2021
b5eee88
create and test alias find_vf_ for find_floating_potential
rocco8773 Feb 2, 2021
6fac0d1
replace `min_points == 0` functionality with `min_points == np.inf`
rocco8773 Feb 2, 2021
dd0cc76
it's below not above
rocco8773 Feb 2, 2021
15f4534
Merge branch 'ad-lang-vf' into sla-isat
rocco8773 Feb 3, 2021
1b4c81d
remove extra space
rocco8773 Feb 3, 2021
f15b32d
create alias find_isat_
rocco8773 Feb 3, 2021
11d2cde
create test_ion_saturation_current.py and initate with test for IonSa…
rocco8773 Feb 3, 2021
ff1aa24
create test class TestFindIonSaturationCurrent and initiate with test…
rocco8773 Feb 3, 2021
89bb8eb
handful of cleanup refactoring based on what was learned with find_fl…
rocco8773 Feb 3, 2021
8599653
fix typo
rocco8773 Feb 3, 2021
28ca101
Merge branch 'ad-lang-vf' into sla-isat
rocco8773 Feb 3, 2021
1900b93
add plasmapy.analysis.swept_langmuir.ion_saturation_current documenta…
rocco8773 Feb 3, 2021
6498a66
grammar fix
rocco8773 Feb 3, 2021
d2b5d29
Merge branch 'ad-lang-vf' into sla-isat
rocco8773 Feb 3, 2021
66789a9
Merge branch 'master_from_plasmapy' into sla-isat
rocco8773 Mar 2, 2021
20fde53
remove bold syntax in hyperlink that does not render correctly on RTD
rocco8773 Mar 8, 2021
32f905b
Merge branch 'main_from_pp' into sla-isat
rocco8773 Jan 24, 2022
10abc65
fix attribute calls
rocco8773 Jan 24, 2022
c953d68
move isat notebook into notebook_for_proto dir
rocco8773 Jan 25, 2022
97a31f8
update the automodapi call to reflect that of the directive defined b…
rocco8773 Jan 25, 2022
61e61d2
Merge branch 'main_from_pp' into sla-isat
rocco8773 Mar 6, 2022
9561b67
update isat return so it returns the isat function and an extras name…
rocco8773 Mar 7, 2022
dcb0950
update test_ion_saturation_current_namedtuple
rocco8773 Mar 7, 2022
565c6c5
add some class attributes
rocco8773 Mar 7, 2022
0c4de1b
add fit-function to glossary
rocco8773 Mar 7, 2022
279914a
use typeing.NamedTuple instead of collections.namedtuple to improve d…
rocco8773 Mar 7, 2022
a197e1c
cleanup dunder definitions
rocco8773 Mar 7, 2022
153edc2
let None by a valid type
rocco8773 Mar 7, 2022
f7ffdfd
fix typos
rocco8773 Mar 7, 2022
f5f1453
make keywords keyword-only
rocco8773 Mar 7, 2022
a42db86
add initial docstring
rocco8773 Mar 7, 2022
1f51aa2
add a Returns section to the docstring
rocco8773 Mar 7, 2022
647fd83
expand notes section in the docstring
rocco8773 Mar 7, 2022
a64406d
replace upper_bound for voltage_bound and current_bound
rocco8773 Mar 7, 2022
e6d5a35
Merge branch 'main_from_pp' into sla-isat-extras-rtn
rocco8773 Mar 8, 2022
725484e
initial commit for test_raises
rocco8773 Mar 8, 2022
ee2651e
fillout test_raises cases
rocco8773 Mar 8, 2022
b44d614
update docstring
rocco8773 Mar 8, 2022
2bce434
update docstring...voltage is monotonically increasing
rocco8773 Mar 8, 2022
c018cf1
update docstring...voltage is monotonically increasing
rocco8773 Mar 8, 2022
bd6027e
Apply suggestions from code review
rocco8773 Mar 9, 2022
0ecbf59
Merge branch 'main_from_pp' into sla-isat-extras-rtn
rocco8773 May 17, 2022
8544d19
update docstring to indicate voltage_bound and current_bound can not …
rocco8773 May 17, 2022
cd1721d
add test_analytical_fits
rocco8773 May 18, 2022
7b4db0b
update docstring for fit_type (exp_plus_offset, not exponential)
rocco8773 May 18, 2022
3a0ec9a
add test case for analytical exponenetial plus offset
rocco8773 May 18, 2022
1d59ef4
add placeholder test for testing on pace data
rocco8773 May 18, 2022
ce91d9d
add test case for analytical exponential plus linear
rocco8773 May 18, 2022
f8b3895
appease grumpy black
rocco8773 May 18, 2022
b107a6d
appease grumpy linters
rocco8773 May 18, 2022
0675792
remove unused import
rocco8773 May 18, 2022
9139141
organize imports
rocco8773 May 18, 2022
3cb003f
copied pace data to langmuir test dir
rocco8773 May 18, 2022
73c045e
added test on pace data
rocco8773 May 18, 2022
6ba601b
add docstrings to tests
rocco8773 May 18, 2022
a190cb0
correct path to pace data
rocco8773 May 18, 2022
6bd03f7
add change log
rocco8773 May 18, 2022
63696e3
define the VFExtras namedtuple
rocco8773 May 18, 2022
c4de72b
incorporate the return pattern of (vf, extras)
rocco8773 May 18, 2022
06dd3a3
use explicit intersphinx link
rocco8773 May 18, 2022
aab29c7
Merge branch 'sla-isat-extras-rtn' into sla_refactor_vf
rocco8773 May 18, 2022
1b2449c
updated tests for FloatingPotentialResults -> VFExtras
rocco8773 May 19, 2022
b23843e
rename import _sl -> sla
rocco8773 May 19, 2022
6b8c24b
update tests for return patter (vf, extras)
rocco8773 May 19, 2022
c80e3d4
update __all__ and __aliases__
rocco8773 May 19, 2022
81dcff6
update the vf notebook to work with the (vf, extras) return pattern
rocco8773 May 19, 2022
ef60181
whoops...clear notebook outputs
rocco8773 May 19, 2022
135308b
appease grumpy black
rocco8773 May 19, 2022
7d0e275
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 19, 2022
b5d0c13
Apply suggestions from code review
rocco8773 May 19, 2022
04bdefc
Merge branch 'main_from_pp' into sla-isat-extras-rtn
rocco8773 May 19, 2022
9be3f3f
Merge remote-tracking branch 'fork/sla-isat-extras-rtn' into sla-isat…
rocco8773 May 19, 2022
1330aea
Merge branch 'sla-isat-extras-rtn' into sla_refactor_vf
rocco8773 May 19, 2022
3cc421d
Apply suggestions from code review
rocco8773 May 19, 2022
e8b0812
Merge branch 'sla-isat-extras-rtn' into sla_refactor_vf
rocco8773 May 19, 2022
e99fba8
Merge branch 'main_from_pp' into sla_vp
rocco8773 Oct 19, 2022
729755d
Merge branch 'main_from_pp' into sla_vp
rocco8773 Nov 14, 2022
a215314
Merge branch 'main_from_pp' into sla_vp
rocco8773 Jun 9, 2025
84015a1
add argument allow_unsorted to check_sweep
rocco8773 Jun 10, 2025
aa50427
rough out helper function sort_sweep_arrays
rocco8773 Jun 10, 2025
a3094ad
add a lint E402 ignore for swept_langmuir/__init__.py
rocco8773 Jun 10, 2025
4242fe6
move full construction of the __all__ dunder to the top of the file
rocco8773 Jun 10, 2025
8805ca5
rough out a merge_voltage_clusters() helper func
rocco8773 Jun 10, 2025
289dbcc
fix error string
rocco8773 Jun 12, 2025
95cbbee
too much to explain
rocco8773 Jun 12, 2025
421feda
Merge branch 'main_from_pp' into sla_vp
rocco8773 Jun 12, 2025
0368af3
add argument allow_unsorted to check_sweep
rocco8773 Jun 10, 2025
4e6ff2c
rough out helper function sort_sweep_arrays
rocco8773 Jun 10, 2025
271d00d
add a lint E402 ignore for swept_langmuir/__init__.py
rocco8773 Jun 10, 2025
1bf8b15
move full construction of the __all__ dunder to the top of the file
rocco8773 Jun 10, 2025
984d7cd
fix error string
rocco8773 Jun 12, 2025
c3ee9ff
add messages to raised errors
rocco8773 Jun 12, 2025
a804016
appease grumpy ruff
rocco8773 Jun 12, 2025
e6bbf79
add docstring
rocco8773 Jun 12, 2025
fa73371
add test case for allow_unsort == True
rocco8773 Jun 12, 2025
7ed8c05
use np.diff to decide if we can manually reorder arrays or need to us…
rocco8773 Jun 13, 2025
79feb55
add value test cases for sort_sweep_arrays
rocco8773 Jun 13, 2025
4c21080
remove unused code
rocco8773 Jun 13, 2025
45a61c5
use the newer numpy.random.Generator
rocco8773 Jun 13, 2025
b5b76da
add change log
rocco8773 Jun 13, 2025
58710bd
reformat with statement
rocco8773 Jun 13, 2025
ee7c4a2
fix references
rocco8773 Jun 13, 2025
47fc01a
Merge branch 'sla_sort_sweep_arrays' into sla_vp
rocco8773 Jun 13, 2025
18bb22b
rough out a merge_voltage_clusters() helper func
rocco8773 Jun 10, 2025
626dedb
too much to explain
rocco8773 Jun 12, 2025
1c5271a
rename _nan_stuff_regular_grid -> _force_regular_spacing
rocco8773 Jun 14, 2025
03309ac
add docstring to _force_regular_spacing
rocco8773 Jun 14, 2025
71b46b5
_force_regular_spacing: only nan stuff the current array
rocco8773 Jun 14, 2025
3feaa67
appease grumpy ruff
rocco8773 Jun 14, 2025
ae1e72e
fix invalid ruff rule in noqa
rocco8773 Jun 14, 2025
7d1a207
appease ruff formatter
rocco8773 Jun 14, 2025
fce4214
move grid regularity checking into separate func _is_voltage_regularl…
rocco8773 Jun 16, 2025
0ab23b9
rough out docstring for merge_voltage_clusters()
rocco8773 Jun 16, 2025
f6e0852
_force_regular_spacing() only NaN stuff if steps of multiples (>1) of…
rocco8773 Jun 16, 2025
66e1af4
merge_voltage_clusters(): return quickly if already regularly spaced
rocco8773 Jun 16, 2025
f587843
add docstring to _is_voltage_regularly_spaced()
rocco8773 Jun 17, 2025
d9ad848
create _interpolate_sweep()
rocco8773 Jun 17, 2025
b05d76a
create _merge_zero_diff_voltage_clusters()
rocco8773 Jun 17, 2025
1be80d8
add return annotations to _interpolate_sweep()
rocco8773 Jun 17, 2025
06e2fc3
appease grumpy ruff
rocco8773 Jun 17, 2025
295d5b8
appease grumpy ruff formatter
rocco8773 Jun 17, 2025
ccea90d
add else case so new_voltage and new_current are always defined
rocco8773 Jun 17, 2025
5484347
create _merge_voltage_clusters()
rocco8773 Jun 17, 2025
d978467
remove noqa from merge_voltage_clusters()
rocco8773 Jun 17, 2025
66518b9
put back noqa C901 and PLR0912
rocco8773 Jun 17, 2025
e7c075e
fix typo
rocco8773 Jun 18, 2025
84ab13e
Merge branch 'main_from_pp' into sla_merge_voltage_clusters
rocco8773 Jun 23, 2025
2663ab5
_force_regular_spacing: fix docstring wording
rocco8773 Jun 23, 2025
19b83de
_is_voltage_regularly_spaced: fix docstring wording
rocco8773 Jun 23, 2025
45bc39e
_interpolate_sweep: fix docstring wording
rocco8773 Jun 23, 2025
09d807b
_merge_zero_diff_voltage_clusters: fix docstring wording
rocco8773 Jun 23, 2025
e9e77b2
_merge_voltage_clusters: fix docstring wording
rocco8773 Jun 23, 2025
0d1a63a
rename _merge_voltage_clusters -> _merge_voltage_clusters__within_dv
rocco8773 Jun 23, 2025
2b997ec
rename _merge_zero_diff_voltage_clusters -> _merge_voltage_clusters__…
rocco8773 Jun 23, 2025
a0b4af7
rename _interpolate_sweep -> _merge_voltage_clusters__interpolate_sweep
rocco8773 Jun 23, 2025
a2382aa
avoid possible infinite loop when voltage_step_size = 0
rocco8773 Jun 23, 2025
31d6969
expand merge_voltage_clusters docstring
rocco8773 Jun 23, 2025
e4a6c78
start test_merge_voltage_clusters()
rocco8773 Jun 23, 2025
a0c545d
add cases to the tests
rocco8773 Jun 24, 2025
0d70ea2
use np.arange to generate reg_voltage instead of np.linspace
rocco8773 Jun 24, 2025
5febd10
replace UserWarning with PlasmaPyWarning
rocco8773 Jun 24, 2025
dab2bfa
add more test scenarios
rocco8773 Jun 24, 2025
96a78d7
add another scenario for the PlasmaPyWarning
rocco8773 Jun 24, 2025
440beaa
Merge branch 'refs/heads/main_from_pp' into sla_merge_voltage_clusters
rocco8773 Jun 24, 2025
b1359c3
disable untyped mypy error for tests
rocco8773 Jun 24, 2025
115835f
update docstring
rocco8773 Jun 24, 2025
a4144d4
removed unnecessary mock
rocco8773 Jun 25, 2025
1638c5e
rework _merge_voltage_clusters__within_dv so clusters are identified …
rocco8773 Jun 25, 2025
6e1838b
remove force_regular_spacing
rocco8773 Jun 25, 2025
50e7364
update warning messages
rocco8773 Jun 25, 2025
30daae3
remove _force_regular_spacing()
rocco8773 Jun 25, 2025
a1df942
if voltage cluster spans a distance larger than voltage_step_size the…
rocco8773 Jun 26, 2025
51071e8
improve docstring
rocco8773 Jun 26, 2025
641126a
update docstring
rocco8773 Jun 26, 2025
786dcfc
update test for removal of kwarg force_regular_spacing
rocco8773 Jun 26, 2025
5d9fda3
use newshape kwarg
rocco8773 Jun 26, 2025
337b7da
fix variable start_current was supposed to be stop_voltage
rocco8773 Jun 26, 2025
ab59694
add newshape to _typos.toml
rocco8773 Jun 26, 2025
fd7b674
add test cases
rocco8773 Jun 26, 2025
2e88fca
remove nan mask test (not needed after removing force_regular_spacing)
rocco8773 Jun 26, 2025
c995db8
add clarifying comments about test scenarios
rocco8773 Jun 26, 2025
8d12c14
remove _merge_voltage_clusters__interpolate_sweep()
rocco8773 Jun 26, 2025
35c5442
use np.isclose to identify voltage steps near voltage_step_size
rocco8773 Jun 26, 2025
ebd1046
if voltage_steps_size is None default to 95% of average step size
rocco8773 Jun 26, 2025
cf8e7c6
modify cluster binning to accounts for clusters sizes that are close …
rocco8773 Jun 26, 2025
adaea82
only consider voltage regularly spaced if the largest step is less th…
rocco8773 Jun 26, 2025
49ffb54
add test cases
rocco8773 Jun 26, 2025
6a4eb39
enforce the voltage array needs to be monotonically ascending
rocco8773 Jun 26, 2025
02e5b79
add texttt and nbins to _typos.toml
rocco8773 Jun 26, 2025
d14ada6
appease grumpy ruff
rocco8773 Jun 26, 2025
b2dbec4
simplify conditional
rocco8773 Jun 26, 2025
15c386b
add noqa
rocco8773 Jun 26, 2025
e7091f9
add changelog entry
rocco8773 Jun 26, 2025
b4fcb7f
remove unused import
rocco8773 Jun 27, 2025
278c273
appease grump ruff format
rocco8773 Jun 27, 2025
c2b0d76
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 27, 2025
8bae949
Merge branch 'main' into sla_merge_voltage_clusters
Jul 9, 2025
c36d1cd
Merge branch 'sla_merge_voltage_clusters' into sla_vp
Jul 9, 2025
8ca2dfd
initial rough out of find_plasma_potential_via_didv_peak
Jul 9, 2025
6c2766e
expose find_plasma_potential to the swept_langmuir namespace
rocco8773 Jul 10, 2025
b314f62
add alias find_vp_
rocco8773 Jul 10, 2025
3a935a2
create namedtuple VpExtras
rocco8773 Jul 10, 2025
a3eff39
incorporate VpExtras into find_plasma_potential
rocco8773 Jul 10, 2025
7b94e1d
calc vp when imax is not singular
rocco8773 Jul 10, 2025
2e9d321
up smooth_fractions count
rocco8773 Jul 10, 2025
1a399ae
force int and float types
rocco8773 Jul 10, 2025
f598fda
Merge branch 'main_from_pp' into sla_merge_voltage_clusters
rocco8773 Jul 10, 2025
06094a4
Merge branch 'sla_merge_voltage_clusters' into sla_vp
rocco8773 Jul 10, 2025
4318df5
Merge branch 'main' into sla_vp
Jul 29, 2025
dcea729
remove alias find_vp_
Jul 30, 2025
e4cdf87
rename find_plasma_potential_via_didv_peak -> find_didv_peak
Jul 30, 2025
64766ab
have E402 lint exception be applied to all files in swept_langmuir
Jul 30, 2025
3d3ed5d
put all dunders at the top of the file
Jul 30, 2025
446bf9a
remove namedtuple filed mehtod
Jul 30, 2025
80acae6
rename namedtuple fields vp_std -> std and computed_plasma_potentials…
Jul 30, 2025
0d6cb8f
rename VpExtras -> dIdVExtras
Jul 30, 2025
1412afc
add noqa's
Jul 30, 2025
5b00125
appease grumpy ruff
Jul 30, 2025
7b87e1f
replace kwarg floating_potential with voltage_window
Jul 30, 2025
2f89e21
rough out docstring for find_didv_peak
Jul 30, 2025
c242dd4
move voltage_window conditioning into dedicated func _condition_volta…
Jul 30, 2025
dd89acd
add docstring for _condition_voltage_window
Jul 30, 2025
d41dfc6
a little minor restructuring
Jul 30, 2025
684343e
fix the return annotation for find_didv_peak
Jul 30, 2025
6f4621d
fix misspelling
Jul 30, 2025
f725d84
create and implement helper function _condition_smooth_fractions
Jul 30, 2025
7f4a337
force data_size to be at least 3 elements
Jul 30, 2025
4a2ab10
add smooth_fractions to docstring, and update annotations
Jul 30, 2025
15653ba
add breadcrumb note
Jul 30, 2025
75fab19
use numpy instead np
Jul 30, 2025
82f73aa
Apply suggestion from @namurphy
rocco8773 Jul 30, 2025
15eceef
Apply suggestion from @namurphy
rocco8773 Jul 30, 2025
3a3946d
Apply suggestion from @namurphy
rocco8773 Jul 30, 2025
0abf9ea
fix line length for docstring
Jul 30, 2025
6ac2a09
reword docstring for clarity
Jul 30, 2025
9be5e55
fix calculation of data_size
Jul 30, 2025
199191c
rename find_didv_peak -> find_didv_peak_location
Jul 30, 2025
28385ef
sort voltage_window, not voltage
Jul 30, 2025
e6b5378
initial rough notebook for find_didv_peak_location()
Jul 30, 2025
08dd09b
add stub file for plasma_potential.py
Jul 30, 2025
593e76e
expose dIdVExtras to the swept_langmuir namespace
Jul 30, 2025
7e9c000
add bias text to the plot
Jul 30, 2025
9a03f12
Merge branch 'main' into sla_vp
Aug 1, 2025
a1fffc7
_condition_voltage_window() add conversion of ndarray to list
Aug 1, 2025
a8d3deb
refactor _condition_voltage_window to handle unsorted voltage_window …
Aug 1, 2025
5473909
move _condition_voltage_window() from plasma_potential.py to helpers.py
Aug 1, 2025
339a3ea
add docstring to dIdVExtras
Aug 1, 2025
5fa7b86
fix spelling mistakes
Aug 1, 2025
7dedac5
appease grumpy ruff
Aug 1, 2025
ad41816
Merge branch 'refs/heads/main' into sla_vp
rocco8773 Sep 11, 2025
f2ca356
add tests for namedtuple dIdVExtras
rocco8773 Sep 12, 2025
5d8bd89
expand docstring for _condition_voltage_window
rocco8773 Sep 15, 2025
bbb5760
_condition_voltage_window: handle case where voltage_window is a string
rocco8773 Sep 15, 2025
66fb53f
_condition_voltage_window: if first_index is 0 set to None
rocco8773 Sep 15, 2025
bd25c14
_condition_voltage_window: for last_index handle the +1 for the slice…
rocco8773 Sep 15, 2025
201f597
add tests for _condition_voltage_window
rocco8773 Sep 15, 2025
4efb1b9
remove unused imports
rocco8773 Sep 15, 2025
2921590
appease grumpy ruff format
rocco8773 Sep 15, 2025
405528a
add noqa to _condition_voltage_window
rocco8773 Sep 15, 2025
755cb56
replace dict() with {}
rocco8773 Sep 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add stub file for plasma_potential.py
  • Loading branch information
Erik Everson committed Jul 30, 2025
commit 08dd09b52ba71467b7febfebdd1536ccf5a92c1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
:orphan:

`plasmapy.analysis.swept_langmuir.plasma_potential`
===================================================

.. currentmodule:: plasmapy.analysis.swept_langmuir.plasma_potential

.. automodapi:: plasmapy.analysis.swept_langmuir.plasma_potential
Loading