lnacquaroli / thin_film_optics Goto Github PK
View Code? Open in Web Editor NEWTools for the optical design and characterisation of thin-films written in Python.
License: MIT License
Tools for the optical design and characterisation of thin-films written in Python.
License: MIT License
The circular module issue requires a redesign of the package.
For numpy
version 1.20 and greater:
import numpy as np
from numpy.typing import Array
def multiply_arrays(a: Array[float], b: Array[float]) -> Array[float]:
return a * b
# Create two NumPy arrays
x = np.array([1.0, 2.0, 3.0])
y = np.array([4.0, 5.0, 6.0])
# Call the function with the arrays
result = multiply_arrays(x, y)
# Print the result
print(result)
Otherwise, try ndarray
:
import numpy as np
from numpy import ndarray
def mae_loss_function(array_1: ndarray, array_2: ndarray) -> float:
"""Calculates the mean absolute error (MAE) between two ndarrays.
Args:
array_1: The first array.
array_2: The second array.
Returns:
The mean absolute error (MAE) between the two arrays.
"""
return np.mean(np.abs(array_1 - array_2))
The modules beam_parameters
and layer_information
could go to the helper folder in one single file.
Pylint fails with many warnings on snake cases, duplicate codes, and the like.
Consider making it more flexible.
After fixing should remove the protected-access in pylintrc
.
There are too many values around the refractive index DB file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.