<commit_before>
###Begin to develop python module opticspy

I want to this for a long time. And I think it is nice and interesting to develop some python module for myself. One reason is to practice python programming and the other reason is that there not much opensource easy-to-use optics program module(matlab has great fuctions but do not specify to optics application).

This project is hosted on github in [https://github.com/Sterncat/opticspy](https://github.com/Sterncat/opticspy)

### What should contain in the module
It is just a note for myself. I think the module should contain these things in optics(list will change)
<ul>
  <li>1. Diffraction: generate diffraction pattern</li>
  <li>2. Geometric matrix calculation</li>
  <li>3. OTF and MTF calculation</li>
  <li>4. Several interferogram</li>
</ul>

### What I want
<ul>	
  <li>1. After import the module and you will get some functions that can use to do some calculation and education in optics</li>
    <li>2. Parameters should be very flexible, and the results should be shown in visualized, intuitionistic figures.</li>
    <li>3. After development of core, I want it be dynamic web application(with Javascript)</li>
</ul>

### What I have done
> [Here](/files/opticspy_1.html) is some example of this opticspy module.

<ul>
  <li>1. Rectangular, circle diffraction pattern, OTF</li>
  <li>2. Third order ray abberation plot</li>
  <li>3. Twyman_Green interferogram with aberration</li>
</ul>


###MIT License
-----------

Copyright (c) 2014-2015 <NAME> (https://github.com/Sterncat/opticspy)
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,<commit_msg>lateral shear<commit_after>
###Begin to develop python module opticspy

I want to this for a long time. And I think it is nice and interesting to develop some python module for myself. One reason is to practice python programming and the other reason is that there not much opensource easy-to-use optics program module(matlab has great fuctions but do not specify to optics application).

This project is hosted on github in [https://github.com/Sterncat/opticspy](https://github.com/Sterncat/opticspy)

### What should contain in the module
It is just a note for myself. I think the module should contain these things in optics(list will change)
<ul>
  <li>1. Diffraction: generate diffraction pattern</li>
  <li>2. Geometric matrix calculation</li>
  <li>3. OTF and MTF calculation</li>
  <li>4. Several interferogram</li>
</ul>

### What I want
<ul>	
  <li>1. After import the module and you will get some functions that can use to do some calculation and education in optics</li>
    <li>2. Parameters should be very flexible, and the results should be shown in visualized, intuitionistic figures.</li>
    <li>3. After development of core, I want it be dynamic web application(with Javascript)</li>
</ul>

### What I have done
> [Here](http://sterncat.github.io/files/opticspy_1.html) is some example of this opticspy module.

<ul>
  <li>1. Rectangular, circle diffraction pattern, OTF</li>
  <li>2. Third order ray abberation plot</li>
  <li>3. Twyman_Green interferogram with aberration</li>
  <li>4. Lateral Shear interferogram with aberration</li>
</ul>


###MIT License
-----------

Copyright (c) 2014-2015 <NAME> (https://github.com/Sterncat/opticspy)
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
{'fraction_non_alphanumeric': 0.08483633934535738, 'fraction_numerical': 0.008684034736138945, 'mean_word_length': 4.412048192771084, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 61, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2511349', 'n_tokens_mistral': 1286, 'n_tokens_neox': 1206, 'n_words': 614}