Skip to content

Commit

Permalink
removing the household & persons completely from pre-processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhav Ponnudurai committed Apr 9, 2024
1 parent 2916829 commit 1ad37e3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/asim/scripts/resident/resident_preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ def __init__(self):

self.time_periods = ['EA', 'AM', 'MD', 'PM', 'EV']

# synthetic population files
self.households_file = os.path.join(self.input_dir, 'households.csv')
self.persons_file = os.path.join(self.input_dir, 'persons.csv')
# # synthetic population files
# self.households_file = os.path.join(self.input_dir, 'households.csv')
# self.persons_file = os.path.join(self.input_dir, 'persons.csv')

self.households = pd.read_csv(self.households_file)
self.persons = pd.read_csv(self.persons_file)
# self.households = pd.read_csv(self.households_file)
# self.persons = pd.read_csv(self.persons_file)


def copy_skims_and_process_names(self):
Expand Down Expand Up @@ -348,8 +348,8 @@ def process_landuse(self):
def write_output(self):
print("Writing final outputs")
self.landuse.to_csv(os.path.join(self.input_dir, 'land_use.csv'), index=True)
self.persons.to_csv(os.path.join(self.input_dir, 'persons.csv'), index=True)
self.households.to_csv(os.path.join(self.input_dir, 'households.csv'), index=True)
# self.persons.to_csv(os.path.join(self.input_dir, 'persons.csv'), index=True)
# self.households.to_csv(os.path.join(self.input_dir, 'households.csv'), index=True)
self.maz_maz_walk.to_csv(os.path.join(self.output_dir, 'skims', 'maz_maz_walk.csv'), index=True)
self.maz_maz_bike.to_csv(os.path.join(self.output_dir, 'skims', 'maz_maz_bike.csv'), index=True)

Expand Down

0 comments on commit 1ad37e3

Please sign in to comment.