carstenbauer / MonteCarlo.jl

Classical and quantum Monte Carlo simulations in Julia
https://carstenbauer.github.io/MonteCarlo.jl/dev/
Other
190 stars 19 forks source link

Make measurement types passable to MC/DQMC #42

Closed ffreyer closed 4 years ago

ffreyer commented 5 years ago

Currently one can pass measurements as measurements = :default, which calls default_measurements(mc, model) or as a Dict{Symbol, AbstractMeasurements}. All the default measurements are however constructed as Measurement(mc, model) meaning they can't be constructed before calling MC or DQMC. It would make sense to allow passing a dictionary of types, which then internally call their constructors.

ffreyer commented 4 years ago

This doesn't make sense anymore because I introduced masks.