Photon-AI-Research / NeuralSolvers

Neural network based solvers for partial differential equations and inverse problems :milky_way:. Implementation of physics-informed neural networks in pytorch.
MIT License
138 stars 46 forks source link

assert that datasets are not empty #40

Closed maxxxzdn closed 3 years ago

maxxxzdn commented 3 years ago

Added assert statements to make sure that datasets are not empty

StillerPatrick commented 3 years ago

Can you throw an exception instead of using assert ?

StillerPatrick commented 3 years ago

Furthermore, you have to check IC, BC and PDE Datasets if there are not empty. Cause the dataloader uses the maximum or the minum of the given datasets, depending on the mode.