christiaanjs / treeflow

GNU General Public License v3.0
13 stars 4 forks source link

Global variable implementation for floating point dtype #14

Closed miparedes closed 4 years ago

miparedes commented 4 years ago

This PR addresses issue #13. (Done in collaboration with @hrnasif )

For added flexibility, a pair of module-level global variables that describe the floating point dtype for TF and NP were created by adding __inti__.py . Then, every function that specifies dtype as an input was altered to take the new global variables as the new input, allowing the user to switch between float32 and float64 by changing the values in __inti__.py.

Of note: this PR was done based on the 2-libsbn-ratiobranch, not from master