Skip to content

Commit

Permalink
precommit formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-gemmell committed Aug 17, 2023
1 parent 8e2f2d8 commit 519c4ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion indica/bayesmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def sample_from_priors(self, param_names, size=10):
return samples.transpose()

def sample_from_high_density_region(
self, param_names: list, sampler: object, nwalkers: int, nsamples=100
self, param_names: list, sampler, nwalkers: int, nsamples=100
):
start_points = self.sample_from_priors(param_names, size=nsamples)

Expand Down
5 changes: 2 additions & 3 deletions indica/workflows/abstract_bayes_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,13 @@ def __init__(
def read_test_data(self, diagnostic_transforms: dict, tstart=None, tend=None, dt=None):
# Used with phantom data for purposes of tests
print("Reading fake data")
self.reader = None
self.equilibrium = fake_equilibrium(
tstart,
tend,
dt,
)
self.transforms = diagnostic_transforms
self.data = {}
self.data: dict = {}

def read_data(self, diagnostics: list, tstart=None, tend=None, dt=None):
self.reader = ReadST40(
Expand All @@ -67,7 +66,7 @@ def setup_models(self, diagnostics: list):
Initialising models normally requires data to be read so transforms can be set
"""
self.models = {}
self.models: dict = {}

@abstractmethod
def _phantom_data(self):
Expand Down

0 comments on commit 519c4ed

Please sign in to comment.