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

Fix ensembleseries doc build failure #596

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 2 additions & 6 deletions pyleoclim/core/ensembleseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,7 @@ def from_PaleoEnsembleArray(self, series, paleo_array, paleo_depth = None, age_d
#Create a random series
value = np.random.normal(0,1,length)
time = pyleo.utils.tsmodel.random_time_axis(length)
lat = np.random.randint(-90,90)
lon = np.random.randint(-180,180)
series = pyleo.Series(time=time, value=value, lat=lat, lon=lon, verbose=False)
series = pyleo.Series(time=time, value=value, verbose=False)

#Create an ensemble using these objects
#Note that the time axis of the series object and the number of rows in the age array must match when depth is not passed
Expand All @@ -238,9 +236,7 @@ def from_PaleoEnsembleArray(self, series, paleo_array, paleo_depth = None, age_d
age_length = 800
value = np.random.normal(0,1,age_length)
time = pyleo.utils.tsmodel.random_time_axis(age_length)
lat = np.random.randint(-90,90)
lon = np.random.randint(-180,180)
series = pyleo.Series(time=time, value=value, lat=lat, lon=lon, verbose=False)
series = pyleo.Series(time=time, value=value, verbose=False)
age_depth = np.arange(age_length)

ens = pyleo.EnsembleSeries.from_PaleoEnsembleArray(series = series,paleo_array=paleo_array,paleo_depth=paleo_depth,age_depth=age_depth,verbose=False)
Expand Down
4 changes: 2 additions & 2 deletions pyleoclim/core/mulensgeoseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ def mcpca(self,nsim=1000, seed=None, common_time_kwargs=None, pca_kwargs=None,al
ts = pyleo.GeoSeries(time=signal.time, value=signal.value+noise[:,idx], lat=lat, lon=lon, verbose=False)
series_list.append(ts)

ts_ens = pyleo.EnsembleSeries(series_list)
ts_ens = pyleo.EnsembleGeoSeries(series_list)
ens_list.append(ts_ens)

mul_ens = pyleo.MulEnsGeoSeries([ts_ens])
mul_ens = pyleo.MulEnsGeoSeries(ens_list)
mul_ens.mcpca(nsim=10,seed=42)'''

common_time_kwargs = {} if common_time_kwargs is None else common_time_kwargs.copy()
Expand Down
Loading