Skip to content

Commit

Permalink
removing the kind flag as it wasn't being used anyhow
Browse files Browse the repository at this point in the history
  • Loading branch information
elliewix committed Aug 12, 2016
1 parent 8f5d00c commit 9439d90
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
16 changes: 9 additions & 7 deletions data_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def get_headers(file):
return headers


def main(source, target, kind, missingcode):
def main(source, target, missingcode):

#files = [source + f for f in getFiles(source)]
if os.path.isdir(source):
Expand Down Expand Up @@ -164,14 +164,16 @@ def main(source, target, kind, missingcode):
if __name__ == "__main__":
args = sys.argv
#print args
# ['data_profile.py', '-m', 'vagrants/', 'vagrant-profiles/', '']
output_flag = args[1]
source_folder = args[2]
target_folder = args[3]
missing_code = args[4]
# ['data_profile.py', 'vagrants/', 'vagrant-profiles/', '']
source_folder = args[1]
target_folder = args[2]
if len(args) < 4:
missing_code = '' # presuming '' if not provided
else:
missing_code = args[3]

# main(source, target, kind, missingcode)
main(source_folder, target_folder, output_flag, missing_code)
main(source_folder, target_folder, missing_code)
# not dealing with the the mode right now, just letting it make both


Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p>Data Profile for MiddlesexVagrants1777-1786v1.1.csv</p>
<p>Generated on: 2016-Aug-11 19:47:01</p>
<p>Generated on: 2016-Aug-11 19:58:31</p>
<p>Number of columns: 29
Number of rows: 14789</p>
<h2><strong>Vagrant ID Number</strong></h2>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Data Profile for MiddlesexVagrants1777-1786v1.1.csv

Generated on: 2016-Aug-11 19:47:01
Generated on: 2016-Aug-11 19:58:31


Number of columns: 29
Expand Down
2 changes: 1 addition & 1 deletion vagrant-profiles/vagrant-profiles_DataProfiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
"num_columns": 29
},
"file_metadata": {
"last_access": "2016-08-11 19:46:38",
"last_access": "2016-08-11 19:58:30",
"size": 4641076,
"last_modified": "2016-04-24 17:31:01",
"filename": "MiddlesexVagrants1777-1786v1.1.csv"
Expand Down

0 comments on commit 9439d90

Please sign in to comment.