Project

General

Profile

Statistics
| Revision:

# Date Author Comment
1125 02/25/2012 02:25 PM Aaron Marcuse-Kubitza

union: Pass through map 0, so that if ignore is set, the input map will still be output. Allow either map's input label to contain the other's input label to enable e.g. appending mappings for an older input version to those for a newer input version.

1124 02/25/2012 01:43 PM Aaron Marcuse-Kubitza

DwC1-DwC2 mapping: Changed input label to DwC1, which is allowed by the now relaxed label constraints imposed by union

1123 02/25/2012 01:42 PM Aaron Marcuse-Kubitza

union: Check if two maps can be combined based on whether map 0 column 0 label contains map 1 column 0 label instead of being equal. This allows map 0's input 0 root to contain the datasource name as well as a format that allows it to be combined with a more general map. Added ignore flag to not print an error if column labels don't match.

1122 02/25/2012 01:39 PM Aaron Marcuse-Kubitza

bin/map: Support optional data format tag in map spreadsheet labels, used by union to check if two maps can be combined

1121 02/25/2012 01:01 PM Aaron Marcuse-Kubitza

mappings: Added DwC1-DwC2.specimens.csv to core maps so it gets cleaned up

1120 02/25/2012 12:57 PM Aaron Marcuse-Kubitza

Only generate for_review mappings of core maps and end products

1119 02/25/2012 12:56 PM Aaron Marcuse-Kubitza

Generate DwC-VegBIEN mapping as union of DwC1 and DwC2 mappings

1118 02/24/2012 08:00 PM Aaron Marcuse-Kubitza

Generate DwC-VegBIEN mapping as union of DwC1 and DwC2 mappings

1117 02/24/2012 07:40 PM Aaron Marcuse-Kubitza

NYBG DB mapping: Removed IdentifiedDate and CollectedDate mappings because they are generated from the year/month/day

1116 02/24/2012 07:39 PM Aaron Marcuse-Kubitza

Added mappings/for_review/DwC1-VegBIEN.specimens.csv

1115 02/24/2012 07:35 PM Aaron Marcuse-Kubitza

Added DwC1-DwC mapping. Generate DwC1-VegBIEN mapping automatically.

1114 02/24/2012 07:11 PM Aaron Marcuse-Kubitza

Regenerated vegbien.ERD exports

1113 02/24/2012 07:08 PM Aaron Marcuse-Kubitza

vegbien.sql: Renamed _keys unique constraints/unique indexes to _unique to better reflect their purpose

1112 02/24/2012 06:54 PM Aaron Marcuse-Kubitza

vegbien.sql: Added method.diameterheight to store DBH height

1111 02/24/2012 06:44 PM Aaron Marcuse-Kubitza

VegBIEN: Moved plantstatus.plantlevel to plantname.rank because the taxonomic rank is a property of the name itself

1110 02/24/2012 06:43 PM Aaron Marcuse-Kubitza

PostgreSQL-MySQL.csv: Fixed custom types translation to match shorter type names

1109 02/24/2012 06:09 PM Aaron Marcuse-Kubitza

vegbien.sql: Added plantstatus unique constraint

1108 02/24/2012 06:07 PM Aaron Marcuse-Kubitza

DwC-VegBIEN mapping: Map datasource name via DwC institutionCode

1107 02/24/2012 05:42 PM Aaron Marcuse-Kubitza

Regenerated vegbien.ERD exports

1106 02/24/2012 05:40 PM Aaron Marcuse-Kubitza

vegbien.ERD.mwb: Lined up logo and legend with other ERD elements

1105 02/24/2012 05:35 PM Aaron Marcuse-Kubitza

vegbien.sql: Renamed methodgrowthform.growthformmethod_id to submethod_id. Added methodtaxonclass.submethod_id (similar to methodgrowthform.submethod_id).

1104 02/24/2012 05:27 PM Aaron Marcuse-Kubitza

vegbien.sql: Added methodgrowthform.growthformmethod_id for specifying a method used by just the growthform

1103 02/24/2012 05:14 PM Aaron Marcuse-Kubitza

vegbien.ERD.mwb: Rearranged legend to more closely match layout of ERD

1102 02/24/2012 04:51 PM Aaron Marcuse-Kubitza

vegbien.sql: Reordered plantstatus fields to put the most important fields at the top, which will be visible in the ERD

1101 02/24/2012 04:42 PM Aaron Marcuse-Kubitza

vegbien.sql: Replaced method.taxonclassincluded,taxonclassexcluded with new many:many methodtaxonclass table. Added methodgrowthform, growthform tables to do the same thing as methodtaxonclass for growth forms.

1100 02/24/2012 03:53 PM Aaron Marcuse-Kubitza

vegbien.sql: method: Added comment on reference_id

1099 02/24/2012 03:44 PM Aaron Marcuse-Kubitza

VegBIEN: Moved plotmethod fields to method because they can also apply to strata. Removed no longer used plotmethod table.

1098 02/24/2012 03:13 PM Aaron Marcuse-Kubitza

input.Makefile: input DB creation: Removed "IF NOT EXISTS" because that check is handled by $(dbExists)

1097 02/24/2012 03:02 PM Aaron Marcuse-Kubitza

input.Makefile: Don't try to recreate an input DB if it already exists

1096 02/24/2012 03:01 PM Aaron Marcuse-Kubitza

Added UArizona DB input

1095 02/24/2012 02:42 PM Aaron Marcuse-Kubitza

Renaming UArizona to UArizona-CSV because there is also a DB input in bien2_staging.ariz_raw on nimoy

1094 02/24/2012 02:31 PM Aaron Marcuse-Kubitza

Added UArizona input

1093 02/24/2012 12:46 PM Aaron Marcuse-Kubitza

env_password: Fixed bug where exit command would not cause it to exit, because pipefail shell option was not set. Moved automatic exiting of the calling script into env_password itself.

1092 02/24/2012 12:26 PM Aaron Marcuse-Kubitza

map: Exit if password not set

1091 02/24/2012 12:18 PM Aaron Marcuse-Kubitza

env_password: cc stderr if it's a log file

1090 02/23/2012 06:49 PM Aaron Marcuse-Kubitza

env_password: Print all messages to /dev/tty so the user sees them even if stderr is redirected to a log file. Exit if password not already set, because e.g. scripts run in the background will not be able to prompt for it.

1089 02/23/2012 05:32 PM Aaron Marcuse-Kubitza

input.Makefile: Don't have make import call verify, because the user often runs import as a test and will not want the output cluttered with verification information. Also, the full imports for which this was intended are often run asynchronously, so that the user will not see the output anyway.

1088 02/23/2012 05:28 PM Aaron Marcuse-Kubitza

input.Makefile: Don't abort on verification errors, which are expected during development

1087 02/21/2012 06:21 PM Aaron Marcuse-Kubitza

SALVIAS tests: Fixed invalid accepted test outputs due to not running `make empty_db` before running tests when using the no-redo optimization shortcut

1086 02/21/2012 06:14 PM Aaron Marcuse-Kubitza

SALVIAS mappings: Fixed plot key mappings to map the correct values to subplot and parent plot

1085 02/21/2012 05:36 PM Aaron Marcuse-Kubitza

vegbien.sql: locationevent: Added unique constraint for subplots based on subplot location

1084 02/21/2012 05:02 PM Aaron Marcuse-Kubitza

SALVIAS-db VegX mapping: Map subplots correctly the way SALVIAS-CSV does

1083 02/21/2012 04:54 PM Aaron Marcuse-Kubitza

SALVIAS verification: Updated to schema changes

1082 02/21/2012 04:42 PM Aaron Marcuse-Kubitza

input.Makefile: Fixed syntax error in verify %.ref target (outdated variable name)

1081 02/21/2012 04:33 PM Aaron Marcuse-Kubitza

input.Makefile: Halt psql commands on first error

1080 02/21/2012 04:27 PM Aaron Marcuse-Kubitza

vegbien.sql: Removed location.authorlocationcode because it's now stored in locationevent as an author-specific setting

1079 02/21/2012 04:24 PM Aaron Marcuse-Kubitza

vegbien.sql: locationevent: Redid unique constraints to avoid applying authorlocationcode-only duplicate elimination to subplots

1078 02/21/2012 04:16 PM Aaron Marcuse-Kubitza

SALVIAS mappings: Map SiteCode/plot_code to locationevent.authorlocationcode because locationevent is now the place to store author-specific plot information

1077 02/21/2012 04:10 PM Aaron Marcuse-Kubitza

SALVIAS mappings: Fixed PlotID mapping to go to locationevent.sourceaccessioncode

1076 02/21/2012 04:06 PM Aaron Marcuse-Kubitza

VegBIEN: Renamed locationevent.authoreventcode to authorlocationcode to reflect that datasources usually use an author-defined code for a plot rather than a plot event

1075 02/21/2012 04:03 PM Aaron Marcuse-Kubitza

vegbien.sql: locationevent: Redid unique constraints to handle datasources that treat the authoreventcode as an authorlocationcode. Eventually, authoreventcode will be renamed to authorlocationcode.

1074 02/21/2012 03:51 PM Aaron Marcuse-Kubitza

vegbien.sql: locationevent: Redid unique constraints to work properly for all fully-specified combinations of keys

1073 02/21/2012 03:31 PM Aaron Marcuse-Kubitza

VegBIEN mappings: Mapped datasource name to new project.datasource. Fixes project duplicate elimination.

1072 02/21/2012 03:16 PM Aaron Marcuse-Kubitza

vegbien.sql: Renamed project.reference_id to datasource_id and pointed it to party, to match locationevent, etc.

1071 02/21/2012 03:02 PM Aaron Marcuse-Kubitza

VegBIEN mappings: Mapped current lat/long to centerlat/long as well so location duplicate elimination will work properly

1070 02/21/2012 03:01 PM Aaron Marcuse-Kubitza

xpath.py: Added support for common subpath after split path's {}

1069 02/21/2012 01:30 PM Aaron Marcuse-Kubitza

sql.py: put(): When encountering a DuplicateKeyException, use dict_subset_right_join to fill in explicit NULL values for columns which don't have data. This causes the database to use the UNIQUE constraint's index to look up the record, instead of relying on individual column indexes for the columns that did have data, which may or may not be available.

1068 02/21/2012 01:27 PM Aaron Marcuse-Kubitza

util.py: Added DefaultDict to wrap collections.defaultdict with a simple value passed in the constructor, defaulting to None. Added dict_subset_right_join() to fill in None for subset keys that don't exist.

1067 02/21/2012 01:06 PM Aaron Marcuse-Kubitza

vegbien.sql: Added method and plotmethod UNIQUE indexes

1066 02/21/2012 01:04 PM Aaron Marcuse-Kubitza

vegbien.ERD.mwb: Removed embargo table from ERD because its functionality is provided in location.confidentialitystatus,confidentialityreason

1065 02/21/2012 12:36 PM Aaron Marcuse-Kubitza

Regenerated vegbien.ERD exports

1064 02/21/2012 12:34 PM Aaron Marcuse-Kubitza

vegbien.sql: Moved locationevent method fields to plotmethod and method. Added comments to method/plotmethod fields, as provided by Michael Lee.

1063 02/21/2012 12:15 PM Aaron Marcuse-Kubitza

VegX-VegBIEN mapping: Mapped locationevent.methodnarrative to new plotmethod table

1062 02/18/2012 07:18 PM Aaron Marcuse-Kubitza

Regenerated vegbien.ERD exports

1061 02/18/2012 07:15 PM Aaron Marcuse-Kubitza

VegX-VegBIEN mapping: Map sourceaccessioncode and voucher (catalognumber_dwc) to correct place. SALVIAS mappings: Map SourceVoucher as an alternative to coll_number.

1060 02/18/2012 06:46 PM Aaron Marcuse-Kubitza

vegbien.sql: Removed VegBank-internal tables (including user account tables) because they do not belong in the ecological database. Any web interface should store user account information, cached queries, etc. in a separate interface-specific database.

1059 02/18/2012 06:34 PM Aaron Marcuse-Kubitza

VegX-VegBIEN mapping: Mapped stem tags to new stemtag table

1058 02/18/2012 05:47 PM Aaron Marcuse-Kubitza

vegbien.sql: Renamed planttag to stemtag and made it a child of stemobservation. Removed trait table from ERD because it's not used for the purpose we want to use traits for.

1057 02/18/2012 05:05 PM Aaron Marcuse-Kubitza

vegbien.sql: Removed no longer used location.reference_id. Datasource scoping is now done on locationevent instead, so that locations can be shared across datasources that refer to the same plot or point.

1056 02/18/2012 04:56 PM Aaron Marcuse-Kubitza

VegX-VegBIEN mapping: Map datasource name (/_ignore/inLabel) to new locationevent.datasource instead of location.reference

1055 02/18/2012 04:45 PM Aaron Marcuse-Kubitza

vegbien.sql: Added locationevent.datasource_id

1054 02/18/2012 04:33 PM Aaron Marcuse-Kubitza

vegbien.sql: locationevent: Removed VegBank-internal interp_* fields

1053 02/18/2012 04:28 PM Aaron Marcuse-Kubitza

VegBIEN: Renamed specimenreplicate.reference_id to datasource_id and pointed it to party instead of reference, since party is better optimized for storing names

1052 02/18/2012 04:14 PM Aaron Marcuse-Kubitza

DwC mappings: Mapped datasource name to specimenreplicate.reference instead of location.reference

1051 02/18/2012 04:08 PM Aaron Marcuse-Kubitza

DwC mappings: Mapped specimen description via fieldNotes instead of custom bien.specimenDescription field

1050 02/18/2012 03:52 PM Aaron Marcuse-Kubitza

VegBIEN: Moved specimenreplicate.verbatimcollectorname to taxonoccurrence since it can also apply to aggregateoccurrences. Removed no longer needed taxonoccurrence fields which are now in taxondetermination.

1049 02/18/2012 03:31 PM Aaron Marcuse-Kubitza

SALVIAS mappings: Mapped habit to growthForm (user-defined field) instead of habit

1048 02/18/2012 03:24 PM Aaron Marcuse-Kubitza

DwC-VegBIEN mapping: Convert latitude/longitude values of exactly zero to NULL

1047 02/18/2012 03:23 PM Aaron Marcuse-Kubitza

xml_func.py: Added _nullIf

1046 02/18/2012 03:22 PM Aaron Marcuse-Kubitza

util.py: Fixed cast() to not cast a subclass to a superclass (which doesn't make sense in a dynamically-typed language). Added none_if().

1045 02/18/2012 02:50 PM Aaron Marcuse-Kubitza

util.py: Removed locale import since it's no longer used by util

1044 02/18/2012 02:31 PM Aaron Marcuse-Kubitza

NYBG-DwC mappings: Map Vegetation to habitat (merged with Habitat). DwC-VegBIEN mapping: Removed remaining mappings to plantobservation.

1043 02/18/2012 02:22 PM Aaron Marcuse-Kubitza

DwC-VegBIEN mapping: Added datasource name to location.reference using /_ignore/inLabel

1042 02/18/2012 02:00 PM Aaron Marcuse-Kubitza

profiling.py: Support Python before 2.7 by using new dates.total_seconds(). Also use dates.now() to ensure datetimes always have a timezone.

1041 02/18/2012 01:59 PM Aaron Marcuse-Kubitza

dates.py: Fixed timestamp() to deal with microseconds correctly by adding them after time.mktime()

1040 02/18/2012 01:41 PM Aaron Marcuse-Kubitza

dates.py: Deal properly with different timezones by using external dateutil package. Added total_seconds() to replace datetime.timedelta.total_seconds() on Python before 2.7.

1039 02/18/2012 12:41 PM Aaron Marcuse-Kubitza

vegbien.sql: *method tables: Added table comments

1038 02/17/2012 06:08 PM Aaron Marcuse-Kubitza

VegX-VegBIEN mapping: Reordered 2-step-only mappings that use /_ignore/inLabel so they run at the same time as other mappings that set the field that uses /_ignore/inLabel. This fixes almost all of the failing 2-step tests.

1037 02/17/2012 05:53 PM Aaron Marcuse-Kubitza

Regenerated vegbien.ERD exports

1036 02/17/2012 05:46 PM Aaron Marcuse-Kubitza

vegbien.sql: method: Added lengthunits field

1035 02/17/2012 05:36 PM Aaron Marcuse-Kubitza

vegbien.sql: Changed types of numerical plotmethod fields to double precision

1034 02/17/2012 05:32 PM Aaron Marcuse-Kubitza

vegbien.sql: method, plotmethod: Added comments to fields

1033 02/17/2012 05:27 PM Aaron Marcuse-Kubitza

vegbien.ERD.mwb: Adjusted lines

1032 02/17/2012 05:24 PM Aaron Marcuse-Kubitza

vegbien.sql: Added plotmethod. locationevent points to plotmethod instead of directly to method

1031 02/17/2012 04:47 PM Aaron Marcuse-Kubitza

vegbien.sql: Point to covermethod from method instead of locationevent

1030 02/17/2012 04:39 PM Aaron Marcuse-Kubitza

vegbien.sql: Removed no longer needed sizeclass table (whose fields are now in method)

1029 02/17/2012 04:32 PM Aaron Marcuse-Kubitza

vegbien.sql: Replaced stratumtype, stratummethod with method

1028 02/17/2012 04:25 PM Aaron Marcuse-Kubitza

vegbien.sql: Attach method to aggregateoccurrence instead of taxonoccurrence

1027 02/17/2012 04:20 PM Aaron Marcuse-Kubitza

vegbien.sql: Removed methodtrait* tables and added first-class method attributes as first-class fields of method. Removed *method tables from the ERD that will be replaced by method.

1026 02/17/2012 04:04 PM Aaron Marcuse-Kubitza

vegbien.sql: Removed location.dsgpoly because it is now locationdetermination.footprintgeometry_dwc