From 0930372f4634e26cb50f660ddf3cf8d8b6101b4d Mon Sep 17 00:00:00 2001
From: fahim-oscad
Date: Mon, 23 May 2016 14:26:44 +0530
Subject: Remove unwanted files And modified the github link and title
---
public/bootstrap-3.3.6-dist.zip | Bin 286035 -> 0 bytes
views/Redundant/__init__.py | 0
views/Redundant/__main__.py | 72 ---------------------
views/Redundant/demo.html | 1 -
views/Redundant/download.php | 58 -----------------
views/Redundant/image.php | 19 ------
views/Redundant/netlist.txt | 14 ----
views/Redundant/python code backup/__main__.py | 59 -----------------
views/Redundant/python code backup/__main__1.py | 64 ------------------
.../python code backup/with matplotlib change.py | 64 ------------------
.../Screenshot from 2015-10-14 15_10_50.png | Bin 83775 -> 0 bytes
.../Screenshot from 2015-10-14 15_11_03.png | Bin 87330 -> 0 bytes
.../Screenshot from 2015-10-14 15_11_14.png | Bin 98539 -> 0 bytes
.../Screenshot from 2015-10-14 15_11_44.png | Bin 116979 -> 0 bytes
views/schematic.html | 9 +--
views/script.php | 3 -
views/simulation.php | 42 ------------
views/spice.php | 62 ------------------
18 files changed, 2 insertions(+), 465 deletions(-)
delete mode 100644 public/bootstrap-3.3.6-dist.zip
delete mode 100644 views/Redundant/__init__.py
delete mode 100644 views/Redundant/__main__.py
delete mode 100644 views/Redundant/demo.html
delete mode 100644 views/Redundant/download.php
delete mode 100644 views/Redundant/image.php
delete mode 100644 views/Redundant/netlist.txt
delete mode 100644 views/Redundant/python code backup/__main__.py
delete mode 100644 views/Redundant/python code backup/__main__1.py
delete mode 100644 views/Redundant/python code backup/with matplotlib change.py
delete mode 100644 views/Redundant/screenshorts/Screenshot from 2015-10-14 15_10_50.png
delete mode 100644 views/Redundant/screenshorts/Screenshot from 2015-10-14 15_11_03.png
delete mode 100644 views/Redundant/screenshorts/Screenshot from 2015-10-14 15_11_14.png
delete mode 100644 views/Redundant/screenshorts/Screenshot from 2015-10-14 15_11_44.png
delete mode 100644 views/script.php
delete mode 100644 views/simulation.php
delete mode 100644 views/spice.php
diff --git a/public/bootstrap-3.3.6-dist.zip b/public/bootstrap-3.3.6-dist.zip
deleted file mode 100644
index 1425549..0000000
Binary files a/public/bootstrap-3.3.6-dist.zip and /dev/null differ
diff --git a/views/Redundant/__init__.py b/views/Redundant/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/views/Redundant/__main__.py b/views/Redundant/__main__.py
deleted file mode 100644
index 0291884..0000000
--- a/views/Redundant/__main__.py
+++ /dev/null
@@ -1,72 +0,0 @@
-import os
-import sys
-import numpy as np
-
-import matplotlib
-# Force matplotlib to not use any Xwindows backend.
-matplotlib.use('Agg')
-
-import matplotlib.pyplot as plt
-
-def get_plot_files(file):
- open_file = open(os.path.realpath(file),'r')
- raw_data = open_file.read()
- array = raw_data.split('* ')
-
- array.pop(0)
- dict_data = {}
- parameters = []
- parsed_files = []
- dir1 = str(file)
-
-
- if not os.path.exists(dir1[:-4]):
- os.makedirs(dir1[:-4])
-
-
- for i in range(len(array)):
- dict_data[i] = array[i]
-
- sample = dict_data[i].split('\n')
- write_file = open(os.path.realpath(dir1[:-4])+'/parsed_%s.txt'%(i),'w')
-
- for j in sample[3:]:
- if j.startswith('Index'):
- items = j.split()
- parameters.append(items) if len(parameters) < i+1 else None
- continue
- if j.startswith('--') or '*' in j:
- continue
- else:
- write_file.write(j+'\n')
-
- parsed_files.append(os.path.realpath(dir1[:-4])+'/parsed_%s.txt'%(i))
- return parameters, parsed_files
-
-def loudew(file):
- parameters, parsed_files = get_plot_files(file)
-
- for plot_file, parameter in zip(parsed_files, parameters):
- data = np.loadtxt(plot_file, unpack=True, dtype=str)
- for i in range(2, len(data)):
-
- plt.plot([x.strip(',') for x in data[1]], [y.strip(',') for y in data[i]])
-
- try:
- plt.xlabel(parameter[1]), plt.ylabel(parameter[i])
- plt.title('%s vs %s'%(parameter[1], parameter[i]))
- plt.savefig(plot_file+str(i)+'.png'), plt.clf()
- except IndexError:
- plt.xlabel(parameter[1]), plt.ylabel('missing y label')
- plt.title('%s vs missing y label'%(parameter[1], ))
- plt.savefig(plot_file+str(i)+'.png'), plt.clf()
-
-
-def main():
-
- files = sys.argv[1:]
- for fi in files:
- loudew(fi)
-
-if __name__ == '__main__':
- main()
diff --git a/views/Redundant/demo.html b/views/Redundant/demo.html
deleted file mode 100644
index afa6675..0000000
--- a/views/Redundant/demo.html
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/views/Redundant/download.php b/views/Redundant/download.php
deleted file mode 100644
index a0ecaf7..0000000
--- a/views/Redundant/download.php
+++ /dev/null
@@ -1,58 +0,0 @@
-
diff --git a/views/Redundant/image.php b/views/Redundant/image.php
deleted file mode 100644
index 5ba14c5..0000000
--- a/views/Redundant/image.php
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/views/Redundant/netlist.txt b/views/Redundant/netlist.txt
deleted file mode 100644
index dbcff26..0000000
--- a/views/Redundant/netlist.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-*ngspice netlist by niel mishra*
-v1 1 0 sin(0 5 1khz)
-c1 2 0 1pf
-d1 1 3 diode
-r1 3 2 10
-
-.tran 1e-03 100e-03 1e-03
-
-.control
-run
-print allv > dumpv.txt
-print alli > dumpi.txt
-.endc
-.end
diff --git a/views/Redundant/python code backup/__main__.py b/views/Redundant/python code backup/__main__.py
deleted file mode 100644
index 05b21d9..0000000
--- a/views/Redundant/python code backup/__main__.py
+++ /dev/null
@@ -1,59 +0,0 @@
-import os
-import sys
-import numpy as np
-
-import matplotlib
-# Force matplotlib to not use any Xwindows backend.
-matplotlib.use('Agg')
-
-import matplotlib.pyplot as plt
-
-def get_plot_files(file):
- open_file = open(os.path.realpath(file),'r')
- raw_data = open_file.read()
- array = raw_data.split('* ')
-
- array.pop(0)
- dict_data = {}
- parameters = []
- parsed_files = []
- for i in range(len(array)):
- dict_data[i] = array[i]
-
- sample = dict_data[i].split('\n')
- write_file = open('parsed_%s.txt'%(i),'w')
-
- for j in sample[3:]:
- if j.startswith('Index'):
- items = j.split()
- parameters.append(items) if len(parameters) < i+1 else None
- continue
- if j.startswith('--'):
- continue
- else:
- write_file.write(j+'\n')
-
- parsed_files.append('parsed_%s.txt'%(i))
- return parameters, parsed_files
-
-def main():
-
- file = sys.argv[1]
- parameters, parsed_files = get_plot_files(file)
-
- for plot_file, parameter in zip(parsed_files, parameters):
- data = np.loadtxt(plot_file, unpack=True, dtype=str)
- for i in range(2, len(data)):
-
- plt.plot([x.strip(',') for x in data[1]], [y.strip(',') for y in data[i]])
- try:
- plt.xlabel(parameter[1]), plt.ylabel(parameter[i])
- plt.title('%s vs %s'%(parameter[1], parameter[i]))
- plt.savefig(plot_file+str(i)+'.png'), plt.clf()
- except IndexError:
- plt.xlabel(parameter[1]), plt.ylabel('missing y label')
- plt.title('%s vs missing y label'%(parameter[1], ))
- plt.savefig(plot_file+str(i)+'.png'), plt.clf()
-
-if __name__ == '__main__':
- main()
diff --git a/views/Redundant/python code backup/__main__1.py b/views/Redundant/python code backup/__main__1.py
deleted file mode 100644
index 134ccec..0000000
--- a/views/Redundant/python code backup/__main__1.py
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/usr/bin/python
-__name__ = '__main__'
-import os
-import sys
-import numpy as np
-
-import matplotlib
-# Force matplotlib to not use any Xwindows backend.
-matplotlib.use('Agg')
-
-import matplotlib.pyplot as plt
-
-
-def get_plot_files(file):
- open_file = open(os.path.realpath(file),'r')
- raw_data = open_file.read()
- array = raw_data.split('* ')
-
- array.pop(0)
- dict_data = {}
- parameters = []
- parsed_files = []
- for i in range(len(array)):
- dict_data[i] = array[i]
-
- sample = dict_data[i].split('\n')
-
- write_file = open('parsed_%s.txt'%(i),'w')
-
- for j in sample[3:]:
-
- if j.startswith('Index'):
- items = j.split()
- parameters.append(items) if len(parameters) < i+1 else None
- continue
- if j.startswith('--'): #or j.startswith('/home') or j.startswith('Transient') or j.startswith(' Transient'):
- continue
- else:
- write_file.write(j+'\n')
-
- parsed_files.append('parsed_%s.txt'%(i))
- return parameters, parsed_files
-
-
-
-
-def mai1n():
-
- file = sys.argv[1]
- parameters, parsed_files = get_plot_files(file)
-
- for plot_file in parsed_files:
-
- for item in parameters:
- data= np.loadtxt(plot_file, unpack= True, dtype= str)
-
- for i in range(2, len(data)):
- plt.figure(i-1), plt.plot(data[1], data[i])
- plt.xlabel(item[1]), plt.ylabel(item[i])
- #plt.title('%s => %s vs %s'%(plot_file,item[1], item[i]))
- plt.savefig(plot_file+str(i)+'.png')
-
-
-mai1n()
diff --git a/views/Redundant/python code backup/with matplotlib change.py b/views/Redundant/python code backup/with matplotlib change.py
deleted file mode 100644
index 134ccec..0000000
--- a/views/Redundant/python code backup/with matplotlib change.py
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/usr/bin/python
-__name__ = '__main__'
-import os
-import sys
-import numpy as np
-
-import matplotlib
-# Force matplotlib to not use any Xwindows backend.
-matplotlib.use('Agg')
-
-import matplotlib.pyplot as plt
-
-
-def get_plot_files(file):
- open_file = open(os.path.realpath(file),'r')
- raw_data = open_file.read()
- array = raw_data.split('* ')
-
- array.pop(0)
- dict_data = {}
- parameters = []
- parsed_files = []
- for i in range(len(array)):
- dict_data[i] = array[i]
-
- sample = dict_data[i].split('\n')
-
- write_file = open('parsed_%s.txt'%(i),'w')
-
- for j in sample[3:]:
-
- if j.startswith('Index'):
- items = j.split()
- parameters.append(items) if len(parameters) < i+1 else None
- continue
- if j.startswith('--'): #or j.startswith('/home') or j.startswith('Transient') or j.startswith(' Transient'):
- continue
- else:
- write_file.write(j+'\n')
-
- parsed_files.append('parsed_%s.txt'%(i))
- return parameters, parsed_files
-
-
-
-
-def mai1n():
-
- file = sys.argv[1]
- parameters, parsed_files = get_plot_files(file)
-
- for plot_file in parsed_files:
-
- for item in parameters:
- data= np.loadtxt(plot_file, unpack= True, dtype= str)
-
- for i in range(2, len(data)):
- plt.figure(i-1), plt.plot(data[1], data[i])
- plt.xlabel(item[1]), plt.ylabel(item[i])
- #plt.title('%s => %s vs %s'%(plot_file,item[1], item[i]))
- plt.savefig(plot_file+str(i)+'.png')
-
-
-mai1n()
diff --git a/views/Redundant/screenshorts/Screenshot from 2015-10-14 15_10_50.png b/views/Redundant/screenshorts/Screenshot from 2015-10-14 15_10_50.png
deleted file mode 100644
index 9b6ee9a..0000000
Binary files a/views/Redundant/screenshorts/Screenshot from 2015-10-14 15_10_50.png and /dev/null differ
diff --git a/views/Redundant/screenshorts/Screenshot from 2015-10-14 15_11_03.png b/views/Redundant/screenshorts/Screenshot from 2015-10-14 15_11_03.png
deleted file mode 100644
index 03d2d52..0000000
Binary files a/views/Redundant/screenshorts/Screenshot from 2015-10-14 15_11_03.png and /dev/null differ
diff --git a/views/Redundant/screenshorts/Screenshot from 2015-10-14 15_11_14.png b/views/Redundant/screenshorts/Screenshot from 2015-10-14 15_11_14.png
deleted file mode 100644
index 3c93db5..0000000
Binary files a/views/Redundant/screenshorts/Screenshot from 2015-10-14 15_11_14.png and /dev/null differ
diff --git a/views/Redundant/screenshorts/Screenshot from 2015-10-14 15_11_44.png b/views/Redundant/screenshorts/Screenshot from 2015-10-14 15_11_44.png
deleted file mode 100644
index b89db79..0000000
Binary files a/views/Redundant/screenshorts/Screenshot from 2015-10-14 15_11_44.png and /dev/null differ
diff --git a/views/schematic.html b/views/schematic.html
index 40e34b5..2f587f1 100644
--- a/views/schematic.html
+++ b/views/schematic.html
@@ -2,7 +2,7 @@
$output"; - } - -//} -?> diff --git a/views/spice.php b/views/spice.php deleted file mode 100644 index de81b13..0000000 --- a/views/spice.php +++ /dev/null @@ -1,62 +0,0 @@ - $tempout"); - - try{ - $image = new Imagick($tempimage); - $image->setImageFormat("png"); - header('Content-type: text/plain'); - echo "data:image/png;base64,".base64_encode ( $image); - } - catch(Exception $e){ - header('Content-type: text/plain'); - echo file_get_contents($tempout); - } - - #header('Content-length: '.strlen($output)); - unlink($tempimage); - unlink($tempout); - - -?> -- cgit